You are here

public function FileTest::testFile_construct_noRequest in One Click Upload 7.2

* @covers ::__construct * @covers ::getIdentifier

File

flowphp/test/Unit/FileTest.php, line 69

Class

FileTest
File unit tests

Namespace

Unit

Code

public function testFile_construct_noRequest() {
  $_REQUEST = $this->requestArr;
  $file = new File($this->config);
  $expIdentifier = sha1($this->requestArr['flowIdentifier']);
  $this
    ->assertSame($expIdentifier, $file
    ->getIdentifier());
}