Neos\Media\Tests\Functional\Domain\Repository\TagRepositoryTest::tagsCanBePersisted PHP Method

tagsCanBePersisted() public method

public tagsCanBePersisted ( )
    public function tagsCanBePersisted()
    {
        $tag = new Tag('foobar');
        $this->tagRepository->add($tag);
        $this->persistenceManager->persistAll();
        $this->persistenceManager->clearState();
        $this->assertCount(1, $this->tagRepository->findAll());
        $this->assertInstanceOf(Tag::class, $this->tagRepository->findAll()->getFirst());
    }