Code Duplication    Length = 14-14 lines in 2 locations

tests/SiteTreeContentReviewTest.php 2 locations

@@ 61-74 (lines=14) @@
58
        $this->assertTrue(isset($perms["EDIT_CONTENT_REVIEW_FIELDS"]));
59
    }
60
61
    public function testUserWithPermissionCanEdit()
62
    {
63
        /** @var Member $editor */
64
        $editor = $this->objFromFixture("Member", "editor");
65
66
        $this->logInAs($editor);
67
68
        /** @var Page|SiteTreeContentReview $page */
69
        $page = new Page();
70
71
        $fields = $page->getSettingsFields();
72
73
        $this->assertNotNull($fields->dataFieldByName("NextReviewDate"));
74
    }
75
76
    public function testUserWithoutPermissionCannotEdit()
77
    {
@@ 76-89 (lines=14) @@
73
        $this->assertNotNull($fields->dataFieldByName("NextReviewDate"));
74
    }
75
76
    public function testUserWithoutPermissionCannotEdit()
77
    {
78
        /** @var Member $author */
79
        $author = $this->objFromFixture("Member", "author");
80
81
        $this->logInAs($author);
82
83
        /** @var Page|SiteTreeContentReview $page */
84
        $page = new Page();
85
86
        $fields = $page->getSettingsFields();
87
88
        $this->assertNull($fields->dataFieldByName("NextReviewDate"));
89
    }
90
91
    public function testAutomaticallyToNotSetReviewDate()
92
    {