Code Duplication    Length = 13-13 lines in 2 locations

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

@@ 113-125 (lines=13) @@
110
        $this->assertCount(3, $fields);
111
    }
112
113
    public function testBuildItemActions()
114
    {
115
        $item = $this->createMock(AbstractPage::class);
116
        $item->method('getId')->willReturn(123);
117
118
        $this->object->buildItemActions();
119
        $actions = $this->object->getItemActions();
120
        $this->assertCount(1, $actions);
121
        $this->assertInstanceOf(SimpleItemAction::class, $actions[0]);
122
        /** @var SimpleItemAction $action */
123
        $action = $actions[0];
124
        $this->assertCount(2, $action->getUrlFor($item));
125
    }
126
}
127

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

@@ 117-129 (lines=13) @@
114
        $this->assertCount(3, $fields);
115
    }
116
117
    public function testBuildItemActions()
118
    {
119
        $item = $this->createMock(AbstractPage::class);
120
        $item->method('getId')->willReturn(123);
121
122
        $this->object->buildItemActions();
123
        $actions = $this->object->getItemActions();
124
        $this->assertCount(1, $actions);
125
        $this->assertInstanceOf(SimpleItemAction::class, $actions[0]);
126
        /** @var SimpleItemAction $action */
127
        $action = $actions[0];
128
        $this->assertCount(2, $action->getUrlFor($item));
129
    }
130
}
131