よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
/** * Basic check if getData gets the uid of a file object * * @test */ public function getDataWithTypeFileReturnsUidOfFileObject() { $uid = $this->getUniqueId(); $file = $this->getMock(\TYPO3\CMS\Core\Resource\File::class, array(), array(), '', FALSE); $file->expects($this->once())->method('getUid')->will($this->returnValue($uid)); $this->subject->setCurrentFile($file); $this->assertEquals($uid, $this->subject->getData('file:current:uid')); }