Merge branch 'master' of github.com:phanan/koel

This commit is contained in:
Phan An 2017-08-21 22:04:44 +01:00
commit 8904e4dcb6
2 changed files with 2 additions and 1 deletions

View file

@ -56,6 +56,7 @@ trait SupportsDeleteWhereIDsNotIn
public static function deleteByChunk(array $ids, $key = 'id', $chunkSize = 65535)
{
DB::beginTransaction();
try {
foreach (array_chunk($ids, $chunkSize) as $chunk) {
static::whereIn($key, $chunk)->delete();

View file

@ -137,7 +137,7 @@ class LastfmTest extends TestCase
$album = factory(Album::class)->create();
// When I request the service for the album's info
$client = m::mock(Client::class, [
$client = m::mock(Client::class, [
'get' => new Response(400, [], file_get_contents(__DIR__.'../../blobs/lastfm/album-notfound.xml')),
]);