Ejemplo n.º 1
0
 /**
  * @test
  * @dataProvider provideDataForIsSharedResourceAllowed
  */
 public function isSharedResourceAllowedShouldReturnCorrectResult($expected, $mimetype)
 {
     $this->addMockedVersionsToFileProfile();
     $file = File::create(array('resource' => Resource::create(array('mimetype' => $mimetype))));
     $this->assertEquals($expected, $this->fileProfile->isSharedResourceAllowed($file));
 }