Code Duplication    Length = 15-16 lines in 2 locations

src/Kunstmaan/FormBundle/Tests/AdminList/FormPageAdminListConfiguratorTest.php 1 location

@@ 86-100 (lines=15) @@
83
84
85
86
    public function testFixedGetters()
87
    {
88
        $item = new FakePage();
89
        $item->setId(123);
90
        $this->assertEquals('', $this->object->getAddUrlFor([]));
91
        $this->assertEquals('KunstmaanNodeBundle', $this->object->getBundleName());
92
        $this->assertEquals('NodeTranslation', $this->object->getEntityName());
93
        $this->assertEquals('KunstmaanFormBundle:FormSubmissions', $this->object->getControllerPath());
94
        $this->assertCount(0, $this->object->getDeleteUrlFor($item));
95
        $this->assertCount(1, $this->object->getIndexUrl());
96
        $this->assertCount(2, $this->object->getEditUrlFor($item));
97
        $this->assertFalse($this->object->canAdd());
98
        $this->assertFalse($this->object->canEdit($item));
99
        $this->assertFalse($this->object->canDelete($item));
100
    }
101
102
103

src/Kunstmaan/FormBundle/Tests/AdminList/FormSubmissionAdminListConfiguratorTest.php 1 location

@@ 89-104 (lines=16) @@
86
87
88
89
    public function testFixedGetters()
90
    {
91
        $item = new FakePage();
92
        $item->setId(123);
93
        $this->assertEquals('', $this->object->getAddUrlFor([]));
94
        $this->assertEquals('KunstmaanFormBundle', $this->object->getBundleName());
95
        $this->assertEquals('FormSubmission', $this->object->getEntityName());
96
        $this->assertCount(0, $this->object->getDeleteUrlFor($item));
97
        $this->assertCount(2, $this->object->getIndexUrl());
98
        $this->assertCount(2, $this->object->getEditUrlFor($item));
99
        $this->assertCount(2, $this->object->getExportUrl());
100
        $this->assertFalse($this->object->canAdd());
101
        $this->assertFalse($this->object->canEdit($item));
102
        $this->assertFalse($this->object->canDelete($item));
103
        $this->assertTrue($this->object->canExport());
104
    }
105
106
107