use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Http;
use League\CommonMark\ConfigurableEnvironmentInterface;
+use League\CommonMark\Environment\Environment;
class ThemeTest extends TestCase
{
';
file_put_contents($translationPath . '/entities.php', $customTranslations);
- $homeRequest = $this->actingAs($this->getViewer())->get('/');
+ $homeRequest = $this->actingAs($this->users->viewer())->get('/');
$this->withHtml($homeRequest)->assertElementContains('header nav', 'Sandwiches');
});
}
{
$callbackCalled = false;
$callback = function ($environment) use (&$callbackCalled) {
- $this->assertInstanceOf(ConfigurableEnvironmentInterface::class, $environment);
+ $this->assertInstanceOf(Environment::class, $environment);
$callbackCalled = true;
return $environment;