Code Duplication    Length = 14-14 lines in 2 locations

tests/CatalogProductInquiryTest.php 2 locations

@@ 101-114 (lines=14) @@
98
        $this->assertFalse(Injector::inst()->get('CatalogProductInquiry')->canEdit());
99
    }
100
101
    public function testCanView()
102
    {
103
        if ($member = Member::currentUser()) {
104
            $this->logOut();
105
        }
106
107
        $inquiry = Injector::inst()->get('CatalogProductInquiry');
108
        $this->assertFalse($inquiry->canView());
109
110
        $this->logInWithPermission('CatalogProductInquiry_view');
111
        $this->assertTrue($inquiry->canView());
112
113
        $this->logOut();
114
    }
115
116
    public function testCanDelete()
117
    {
@@ 116-129 (lines=14) @@
113
        $this->logOut();
114
    }
115
116
    public function testCanDelete()
117
    {
118
        if ($member = Member::currentUser()) {
119
            $this->logOut();
120
        }
121
122
        $inquiry = Injector::inst()->get('CatalogProductInquiry');
123
        $this->assertFalse($inquiry->canDelete());
124
125
        $this->logInWithPermission('CatalogProductInquiry_delete');
126
        $this->assertTrue($inquiry->canDelete());
127
128
        $this->logOut();
129
    }
130
131
}