}
public function testGetNoAvatar() {
- if (PHP_MAJOR_VERSION > 7) {
- $this->markTestSkipped('Only run on php7');
- }
-
$file = $this->createMock(ISimpleFile::class);
$this->folder->method('newFile')
->willReturn($file);
}
public function testGetAvatarSizeMatch() {
- if (PHP_MAJOR_VERSION > 7) {
- $this->markTestSkipped('Only run on php7');
- }
-
$this->folder->method('fileExists')
->willReturnMap([
['avatar.jpg', true],
}
public function testGetAvatarSizeMinusOne() {
- if (PHP_MAJOR_VERSION > 7) {
- $this->markTestSkipped('Only run on php7');
- }
-
$this->folder->method('fileExists')
->willReturnMap([
['avatar.jpg', true],
}
public function testGetAvatarNoSizeMatch() {
- if (PHP_MAJOR_VERSION > 7) {
- $this->markTestSkipped('Only run on php7');
- }
-
$this->folder->method('fileExists')
->willReturnMap([
['avatar.png', true],
}
public function testSetAvatar() {
- if (PHP_MAJOR_VERSION > 7) {
- $this->markTestSkipped('Only run on php7');
- }
-
$avatarFileJPG = $this->createMock(File::class);
$avatarFileJPG->method('getName')
->willReturn('avatar.jpg');