Метка: testing
laravel-mojito – облегченный пакет для тестирования представлений Laravel в изоляции

class WelcomeTest extends TestCase
{
// First, add the `InteractsWithViews` trait to your test case class.
use InteractsWithViews;
public function testDisplaysLaravel()
{
// Then, get started with Mojito using the `assertView` method.
$this->assertView('welcome')->contains('Laravel');
}
}
ben182/laravel-ab – плагин для внедрения аб тестов на laravel
@if (AbTesting::isExperiment('logo-big'))
<div class="logo-big"></div>
@elseif (AbTesting::isExperiment('logo-grayscale'))
<div class="logo-greyscale"></div>
@elseif (AbTesting::isExperiment('brand-name'))
<h1>Brand name</h1>
@endif