GraphAware\Neo4j\OGM\Tests\Integration\SingleEntityTest::testMultipleNodesWithDifferentLabelsArePersisted PHP Method

testMultipleNodesWithDifferentLabelsArePersisted() public method

    public function testMultipleNodesWithDifferentLabelsArePersisted()
    {
        $user = new User('ikwattro');
        $user->setActive();
        $this->em->persist($user);
        $movie = new Movie('Jumanji');
        $movie->setReleased();
        $this->em->persist($movie);
        $this->em->flush();
        $this->assertGraphExist('(u:User:Active {login:"ikwattro"})');
        $this->assertGraphExist('(m:Movie:Released {title:"Jumanji"})');
    }