Code Duplication    Length = 11-11 lines in 2 locations

tests/BlogCategoryTest.php 1 location

@@ 87-97 (lines=11) @@
84
		$this->assertTrue($category->canEdit($editor), 'Editor should be able to edit category.');
85
	}
86
87
	public function testCanCreate() {
88
		$this->useDraftSite();
89
90
		$admin = $this->objFromFixture('Member', 'Admin');
91
		$editor = $this->objFromFixture('Member', 'Editor');
92
93
		$category = singleton('BlogCategory');
94
95
		$this->assertTrue($category->canCreate($admin), 'Admin should be able to create category.');
96
		$this->assertTrue($category->canCreate($editor), 'Editor should be able to create category.');
97
	}
98
99
	public function testCanDelete() {
100
		$this->useDraftSite();

tests/BlogTagTest.php 1 location

@@ 93-103 (lines=11) @@
90
		$this->assertTrue($tag->canEdit($editor), 'Editor should be able to edit tag.');
91
	}
92
93
	public function testCanCreate() {
94
		$this->useDraftSite();
95
96
		$admin = $this->objFromFixture('Member', 'Admin');
97
		$editor = $this->objFromFixture('Member', 'Editor');
98
99
		$tag = singleton('BlogTag');
100
101
		$this->assertTrue($tag->canCreate($admin), 'Admin should be able to create tag.');
102
		$this->assertTrue($tag->canCreate($editor), 'Editor should be able to create tag.');
103
	}
104
105
	public function testCanDelete() {
106
		$this->useDraftSite();