mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-12-22 18:46:11 +01:00
[TASK] Change misleading variable names in some tests (#470)
We are not using any "container" class here, and hence the results from repository find methods should be named `$result` instead of `$container`.
This commit is contained in:
parent
69f03b0110
commit
dc6c0eedeb
1 changed files with 7 additions and 7 deletions
|
@ -53,9 +53,9 @@ class TeaRepositoryTest extends FunctionalTestCase
|
|||
*/
|
||||
public function findAllForNoRecordsReturnsEmptyContainer(): void
|
||||
{
|
||||
$container = $this->subject->findAll();
|
||||
$result = $this->subject->findAll();
|
||||
|
||||
self::assertCount(0, $container);
|
||||
self::assertCount(0, $result);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -65,9 +65,9 @@ class TeaRepositoryTest extends FunctionalTestCase
|
|||
{
|
||||
$this->importDataSet(__DIR__ . '/../Fixtures/Product/Tea.xml');
|
||||
|
||||
$container = $this->subject->findAll();
|
||||
$result = $this->subject->findAll();
|
||||
|
||||
self::assertGreaterThanOrEqual(1, \count($container));
|
||||
self::assertGreaterThanOrEqual(1, \count($result));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -77,10 +77,10 @@ class TeaRepositoryTest extends FunctionalTestCase
|
|||
{
|
||||
$this->importDataSet(__DIR__ . '/../Fixtures/Product/Tea.xml');
|
||||
|
||||
$container = $this->subject->findAll();
|
||||
$result = $this->subject->findAll();
|
||||
|
||||
$container->rewind();
|
||||
self::assertSame(2, $container->current()->getUid());
|
||||
$result->rewind();
|
||||
self::assertSame(2, $result->current()->getUid());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue