Doctrine\SkeletonMapper\Tests\Functional\BaseImplementationTest::testFind PHP Метод

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

public testFind ( )
    public function testFind()
    {
        $user1 = $this->objectManager->find($this->userClassName, 1);
        $this->assertInstanceOf($this->userClassName, $user1);
        $this->assertEquals(1, $user1->getId());
        $this->assertEquals('jwage', $user1->getUsername());
        $this->assertEquals('password', $user1->getPassword());
        $user2 = $this->objectManager->find($this->userClassName, 2);
        $this->assertInstanceOf($this->userClassName, $user2);
        $this->assertSame($user2, $this->objectManager->find($this->userClassName, 2));
        $this->assertEquals(2, $user2->getId());
        $this->assertEquals('romanb', $user2->getUsername());
        $this->assertEquals('password', $user2->getPassword());
    }