You are here

public function ModuleFunctionsTest::testFlysystemCronCallsEnsure in Flysystem 8

Same name and namespace in other branches
  1. 3.x tests/src/Unit/ModuleFunctionsTest.php \Drupal\Tests\flysystem\Unit\ModuleFunctionsTest::testFlysystemCronCallsEnsure()
  2. 2.0.x tests/src/Unit/ModuleFunctionsTest.php \Drupal\Tests\flysystem\Unit\ModuleFunctionsTest::testFlysystemCronCallsEnsure()
  3. 3.0.x tests/src/Unit/ModuleFunctionsTest.php \Drupal\Tests\flysystem\Unit\ModuleFunctionsTest::testFlysystemCronCallsEnsure()

Tests flysystem_cron() calls ensure.

File

tests/src/Unit/ModuleFunctionsTest.php, line 61

Class

ModuleFunctionsTest
Tests module functions.

Namespace

Drupal\Tests\flysystem\Unit

Code

public function testFlysystemCronCallsEnsure() {
  $this->factory
    ->ensure()
    ->shouldBeCalled();
  flysystem_cron();
}