mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-17 01:38:41 +00:00
fix unit tests for collection/media tests
This commit is contained in:
parent
e89b3efb32
commit
fc58cbd075
|
|
@ -83,7 +83,7 @@ trait ApiControllerCollectionTrait
|
||||||
$this->module->apiCollectionCreate($request, $response);
|
$this->module->apiCollectionCreate($request, $response);
|
||||||
|
|
||||||
$collection = $response->get('')['response'];
|
$collection = $response->get('')['response'];
|
||||||
self::assertEquals('Test Collection', $collection);
|
self::assertEquals('Test Collection', $collection->getName());
|
||||||
self::assertCount(2, $collection->getSources());
|
self::assertCount(2, $collection->getSources());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
1
tests/Controller/Api/testFile1.txt
Normal file
1
tests/Controller/Api/testFile1.txt
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Media/Collection Test 1
|
||||||
1
tests/Controller/Api/testFile2.txt
Normal file
1
tests/Controller/Api/testFile2.txt
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Media/Collection Test 2
|
||||||
Loading…
Reference in New Issue
Block a user