コード例 #1
0
 /**
  * @dataProvider accessNameProvider
  */
 public function testUnlinkEncoding($accessName)
 {
     $this->sourceStorage->file_put_contents(self::NFD_NAME, 'bar');
     $this->assertTrue($this->instance->unlink($accessName));
     $this->assertFalse($this->sourceStorage->file_exists(self::NFC_NAME));
     $this->assertFalse($this->sourceStorage->file_exists(self::NFD_NAME));
 }
コード例 #2
0
 public function testGetAvatarValidUser()
 {
     $avatar = $this->avatarManager->getAvatar('valid-user');
     $this->assertInstanceOf('\\OCP\\IAvatar', $avatar);
     $this->assertFalse($this->storage->file_exists('files'));
 }