src/OpenOrchestra/Tests/Functional/ModelBundle/Repository/ContentRepositoryTest.php 1 location
|
@@ 630-636 (lines=7) @@
|
627 |
|
/** |
628 |
|
* Test has statused element |
629 |
|
*/ |
630 |
|
public function testHasStatusedElement() |
631 |
|
{ |
632 |
|
$statusRepository = static::$kernel->getContainer()->get('open_orchestra_model.repository.status'); |
633 |
|
$status = $statusRepository->findOneByInitial(); |
634 |
|
|
635 |
|
$this->assertTrue($this->repository->hasStatusedElement($status)); |
636 |
|
} |
637 |
|
|
638 |
|
/** |
639 |
|
* Test findAllPublishedByContentId |
src/OpenOrchestra/Tests/Functional/ModelBundle/Repository/NodeRepositoryTest.php 1 location
|
@@ 524-530 (lines=7) @@
|
521 |
|
/** |
522 |
|
* Test has statused element |
523 |
|
*/ |
524 |
|
public function testHasStatusedElement() |
525 |
|
{ |
526 |
|
$statusRepository = static::$kernel->getContainer()->get('open_orchestra_model.repository.status'); |
527 |
|
$status = $statusRepository->findOneByInitial(); |
528 |
|
|
529 |
|
$this->assertTrue($this->repository->hasStatusedElement($status)); |
530 |
|
} |
531 |
|
|
532 |
|
/** |
533 |
|
* Test find by site and defaultTheme |