Code Duplication    Length = 11-14 lines in 2 locations

app/Test/Case/Controller/UsersControllerTest.php 2 locations

@@ 413-426 (lines=14) @@
410
			$this->testAction('/users/setcategory/all');
411
		}
412
413
		public function testSetcategoryAll() {
414
			$Users = $this->generate(
415
				'Users',
416
				array('models' => array('User' => array('setCategory')))
417
			);
418
419
			$this->_loginUser(3);
420
421
			$Users->User->expects($this->once())
422
					->method('setCategory')
423
					->with('all');
424
425
			$this->testAction('/users/setcategory/all');
426
		}
427
428
		public function testSetcategoryCategory() {
429
			$Users = $this->generate(
@@ 428-438 (lines=11) @@
425
			$this->testAction('/users/setcategory/all');
426
		}
427
428
		public function testSetcategoryCategory() {
429
			$Users = $this->generate(
430
				'Users',
431
				array('models' => array('User' => array('setCategory')))
432
			);
433
			$this->_loginUser(3);
434
			$Users->User->expects($this->once())
435
					->method('setCategory')
436
					->with(5);
437
			$this->testAction('/users/setcategory/5');
438
		}
439
440
		public function testSetcategoryCategories() {
441
			$Users = $this->generate(