GraphAware\Neo4j\OGM\Tests\Integration\ManagedEntityFlushITest::testManagedEntityIsFlushedOnBooleanLabelUpdate PHP Method

testManagedEntityIsFlushedOnBooleanLabelUpdate() public method

    public function testManagedEntityIsFlushedOnBooleanLabelUpdate()
    {
        $user = new User('ikwattro');
        $user->setActive();
        $this->em->persist($user);
        $this->em->flush();
        $this->assertGraphExist('(u:User:Active {login:"ikwattro"})');
        $user->setInactive();
        $this->assertFalse($user->isActive());
        $this->em->flush();
        $this->assertGraphNotExist('(u:User:Active {login:"ikwattro"})');
    }