blessing-skin-server/tests/ServicesTest/WebpackTest.php
2019-03-31 13:12:56 +08:00

18 lines
375 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('http://localhost/app/b', app('webpack')->$key);
}
}