Doctrine\Tests\ODM\CouchDB\Functional\BasicCrudTest::testUpdate1 PHP Метод

testUpdate1() публичный Метод

public testUpdate1 ( )
    public function testUpdate1()
    {
        $user = new User();
        $user->id = "myuser-1234";
        $user->username = "test";
        $this->dm->persist($user);
        $this->dm->flush();
        $this->dm->clear();
        $user = $this->dm->find($this->type, $user->id);
        $user->username = "test2";
        $this->dm->flush();
        $this->dm->clear();
        $userNew = $this->dm->find($this->type, $user->id);
        $this->assertEquals($user->username, $userNew->username);
    }