blessing-skin-server/tests/CommandsTest/OptionsCacheCommandTest.php
2019-08-21 23:46:38 +08:00

26 lines
683 B
PHP

<?php
namespace Tests;
use Illuminate\Support\Str;
use Illuminate\Filesystem\Filesystem;
class OptionsCacheCommandTest extends TestCase
{
public function testRun()
{
/*$this->mock(Filesystem::class, function ($mock) {
$mock->shouldReceive('put')
/*->withArgs(function ($path, $content) {
$this->assertEquals(storage_path('options/cache.php'), $path);
$this->assertTrue(Str::startsWith($content), '<?php');
return true;
})
->once();
});*/
$this->artisan('options:cache')->expectsOutput('Options cached successfully.');
}
}