Neos\Flow\Tests\Functional\Persistence\Doctrine\RepositoryTest::countAllCountsSubTypesOfTheManagedType PHP Method

countAllCountsSubTypesOfTheManagedType() public method

    public function countAllCountsSubTypesOfTheManagedType()
    {
        $this->superEntityRepository = $this->objectManager->get(Fixtures\SuperEntityRepository::class);
        $superEntity = new Fixtures\SuperEntity();
        $superEntity->setContent('this is the super entity');
        $this->superEntityRepository->add($superEntity);
        $subEntity = new Fixtures\SubEntity();
        $subEntity->setContent('this is the sub entity');
        $this->superEntityRepository->add($subEntity);
        $this->persistenceManager->persistAll();
        $this->assertEquals(2, $this->superEntityRepository->countAll());
    }