Code Duplication    Length = 14-14 lines in 2 locations

tests/SiteTreeContentReviewTest.php 2 locations

@@ 76-89 (lines=14) @@
73
        $this->assertTrue(isset($perms["EDIT_CONTENT_REVIEW_FIELDS"]));
74
    }
75
76
    public function testUserWithPermissionCanEdit()
77
    {
78
        /** @var Member $editor */
79
        $editor = $this->objFromFixture(Member::class, "editor");
80
81
        $this->logInAs($editor);
82
83
        /** @var Page|SiteTreeContentReview $page */
84
        $page = new Page();
85
86
        $fields = $page->getSettingsFields();
87
88
        $this->assertNotNull($fields->dataFieldByName("NextReviewDate"));
89
    }
90
91
    public function testUserWithoutPermissionCannotEdit()
92
    {
@@ 91-104 (lines=14) @@
88
        $this->assertNotNull($fields->dataFieldByName("NextReviewDate"));
89
    }
90
91
    public function testUserWithoutPermissionCannotEdit()
92
    {
93
        /** @var Member $author */
94
        $author = $this->objFromFixture(Member::class, "author");
95
96
        $this->logInAs($author);
97
98
        /** @var Page|SiteTreeContentReview $page */
99
        $page = new Page();
100
101
        $fields = $page->getSettingsFields();
102
103
        $this->assertNull($fields->dataFieldByName("NextReviewDate"));
104
    }
105
106
    public function testAutomaticallyToNotSetReviewDate()
107
    {