Code Duplication    Length = 6-7 lines in 2 locations

app/Test/Case/Controller/EntriesControllerTest.php 1 location

@@ 842-848 (lines=7) @@
839
			$this->assertRedirectedTo('login');
840
		}
841
842
		public function testThreadLineSucces() {
843
			$this->generate('Entries');
844
			$this->_loginUser(1);
845
			$result = $this->testAction('/entries/threadLine/6.json', ['return' => 'view']);
846
			$expected = 'Third Thread First_Subject';
847
			$this->assertContains($expected, $result);
848
		}
849
850
		public function testAppStats() {
851
			Configure::write('Cache.disable', false);

app/Test/Case/Controller/UsersControllerTest.php 1 location

@@ 318-323 (lines=6) @@
315
			$this->assertNotContains('disabled', $result);
316
		}
317
318
		public function testRegisterCheckboxOnPage() {
319
			$result = $this->testAction('users/register', array('return' => 'view'));
320
			$this->assertContains('data[User][tos_confirm]', $result);
321
			$this->assertContains('http://example.com/tos-url.html/', $result);
322
			$this->assertContains('disabled="disabled"', $result);
323
		}
324
325
		public function testRegisterCheckboxOnPageCustomTosUrl() {
326
			Configure::write('Saito.Settings.tos_url', '');