@@ 415-425 (lines=11) @@ | ||
412 | )); |
|
413 | } |
|
414 | ||
415 | public function testRepositoryFindByX() |
|
416 | { |
|
417 | $this->loadFixtureData(); |
|
418 | ||
419 | $this->assertCount(1, $this->_em->getRepository(CmsGroup::class)->findById($this->groupId2)); |
|
420 | ||
421 | $this->useCMSGroupPrefixFilter(); |
|
422 | $this->_em->clear(); |
|
423 | ||
424 | $this->assertCount(0, $this->_em->getRepository(CmsGroup::class)->findById($this->groupId2)); |
|
425 | } |
|
426 | ||
427 | public function testRepositoryFindOneBy() |
|
428 | { |
|
@@ 443-453 (lines=11) @@ | ||
440 | )); |
|
441 | } |
|
442 | ||
443 | public function testRepositoryFindOneByX() |
|
444 | { |
|
445 | $this->loadFixtureData(); |
|
446 | ||
447 | $this->assertNotNull($this->_em->getRepository(CmsGroup::class)->findOneById($this->groupId2)); |
|
448 | ||
449 | $this->useCMSGroupPrefixFilter(); |
|
450 | $this->_em->clear(); |
|
451 | ||
452 | $this->assertNull($this->_em->getRepository(CmsGroup::class)->findOneById($this->groupId2)); |
|
453 | } |
|
454 | ||
455 | public function testToOneFilter() |
|
456 | { |