blessing-skin-server/tests/ServicesTest/WebpackTest.php
2019-03-31 14:38:17 +08:00

18 lines
354 B
PHP

<?php
namespace Tests;
use File;
use App\Services\Webpack;
class WebpackTest extends TestCase
{
public function testManifest()
{
File::shouldReceive('exists')->andReturn(true);
File::shouldReceive('get')->andReturn(json_encode(['a' => 'b']));
$key = 'a';
$this->assertEquals('b', app('webpack')->$key);
}
}