mirror of
https://github.com/koel/koel
synced 2024-11-24 13:13:05 +00:00
Merge branch 'master' of github.com:phanan/koel
This commit is contained in:
commit
8904e4dcb6
2 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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')),
|
||||
]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue