Code Duplication    Length = 8-8 lines in 2 locations

tests/lib/avatartest.php 2 locations

@@ 81-88 (lines=8) @@
78
		$this->assertFalse($this->avatar->exists());
79
	}
80
81
	public function testExiststJPG() {
82
		$this->folder->method('nodeExists')
83
			->will($this->returnValueMap([
84
				['avatar.jpg', true],
85
				['avatar.png', false],
86
			]));
87
		$this->assertTrue($this->avatar->exists());
88
	}
89
90
	public function testExistsPNG() {
91
		$this->folder->method('nodeExists')
@@ 90-97 (lines=8) @@
87
		$this->assertTrue($this->avatar->exists());
88
	}
89
90
	public function testExistsPNG() {
91
		$this->folder->method('nodeExists')
92
			->will($this->returnValueMap([
93
				['avatar.jpg', false],
94
				['avatar.png', true],
95
			]));
96
		$this->assertTrue($this->avatar->exists());
97
	}
98
99
	public function testSetAvatar() {
100
		$oldFile = $this->getMock('\OCP\Files\File');