18 lines
354 B
PHP
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);
|
|
}
|
|
}
|