blessing-skin-server/tests/ServicesTest/WebpackTest.php

17 lines
328 B
PHP
Raw Normal View History

2019-03-31 13:12:56 +08:00
<?php
namespace Tests;
use File;
class WebpackTest extends TestCase
{
public function testManifest()
{
File::shouldReceive('exists')->andReturn(true);
File::shouldReceive('get')->andReturn(json_encode(['a' => 'b']));
$key = 'a';
2019-03-31 14:38:17 +08:00
$this->assertEquals('b', app('webpack')->$key);
2019-03-31 13:12:56 +08:00
}
}