Code Duplication    Length = 8-8 lines in 2 locations

tests/Doctrine/Tests/ODM/CouchDB/Functional/BasicCrudTest.php 1 location

@@ 34-41 (lines=8) @@
31
        $this->assertEquals(201, $resp->status);
32
    }
33
34
    public function testFind()
35
    {
36
        $user = $this->dm->find($this->type, 1);
37
38
        $this->assertInstanceOf($this->type, $user);
39
        $this->assertEquals('1', $user->id);
40
        $this->assertEquals('lsmith', $user->username);
41
    }
42
43
    public function testFindUsesIdentityMap()
44
    {

tests/Doctrine/Tests/ODM/CouchDB/Functional/ManyToOneAssociationTest.php 1 location

@@ 42-49 (lines=8) @@
39
        $this->userIds = array($user1->id, $user2->id);
40
    }
41
42
    public function testSaveWithAssociation()
43
    {
44
        $article = $this->dm->find('Doctrine\Tests\Models\CMS\CmsArticle', $this->articleId);
45
46
        $this->assertInstanceOf('Doctrine\Tests\Models\CMS\CmsUser', $article->user);
47
        $this->assertNull($article->user->username, 'CmsUser is a proxy, username is NULL through public access');
48
        $this->assertEquals('beberlei', $article->user->getUsername());
49
    }
50
51
    public function testSwitchAssociation()
52
    {