mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-10 01:16:12 +01:00
[CLEANUP] Inline some variables in the tests (#997)
This makes the tests more concise while still keeping them readable.
This commit is contained in:
parent
2a763a2398
commit
3cdf8df7a0
1 changed files with 3 additions and 6 deletions
|
@ -73,8 +73,7 @@ final class TeaRepositoryTest extends FunctionalTestCase
|
|||
{
|
||||
$this->importCSVDataSet(__DIR__ . '/../Fixtures/Product/Tea.csv');
|
||||
|
||||
$uid = 1;
|
||||
$model = $this->subject->findByUid($uid);
|
||||
$model = $this->subject->findByUid(1);
|
||||
|
||||
self::assertInstanceOf(Tea::class, $model);
|
||||
}
|
||||
|
@ -86,8 +85,7 @@ final class TeaRepositoryTest extends FunctionalTestCase
|
|||
{
|
||||
$this->importCSVDataSet(__DIR__ . '/../Fixtures/Product/Tea.csv');
|
||||
|
||||
$uid = 1;
|
||||
$model = $this->subject->findByUid($uid);
|
||||
$model = $this->subject->findByUid(1);
|
||||
self::assertInstanceOf(Tea::class, $model);
|
||||
|
||||
self::assertSame('Earl Grey', $model->getTitle());
|
||||
|
@ -102,8 +100,7 @@ final class TeaRepositoryTest extends FunctionalTestCase
|
|||
{
|
||||
$this->importCSVDataSet(__DIR__ . '/../Fixtures/Product/Tea.csv');
|
||||
|
||||
$uid = 3;
|
||||
$model = $this->subject->findByUid($uid);
|
||||
$model = $this->subject->findByUid(3);
|
||||
|
||||
$image = $model->getImage();
|
||||
self::assertInstanceOf(FileReference::class, $image);
|
||||
|
|
Loading…
Reference in a new issue