Doctrine\Tests\ODM\CouchDB\Functional\BasicCrudTest::testUpdate2 PHP Method

testUpdate2() public method

public testUpdate2 ( )
    public function testUpdate2()
    {
        $user = $this->dm->find($this->type, 1);
        $user->username = "new-name";
        $this->dm->flush();
        $this->dm->clear();
        $newUser = $this->dm->find($this->type, 1);
        $this->assertEquals('new-name', $newUser->username);
    }