Neos\Flow\Tests\Unit\Monitor\ChangeDetectionStrategy\ModificationTimeStrategyTest::getFileStatusDetectsANewlyCreatedFile PHP Method

getFileStatusDetectsANewlyCreatedFile() public method

    public function getFileStatusDetectsANewlyCreatedFile()
    {
        $fileUrl = vfsStream::url('testDirectory') . '/test.txt';
        file_put_contents($fileUrl, 'test data');
        $status = $this->strategy->getFileStatus($fileUrl);
        $this->assertSame(\Neos\Flow\Monitor\ChangeDetectionStrategy\ChangeDetectionStrategyInterface::STATUS_CREATED, $status);
    }