Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera

uno-de-piera/FrameworkTest.php Secret

Last active May 31, 2020
Embed
What would you like to do?
<?php
/**
* @group framework-page
*/
public function testCheckErrorFormFrameworkPage()
{
factory(User::class, 1)->create();
$this->browse(function (Browser $browser) {
$browser->loginAs(User::find(1))
->visit(new \Tests\Browser\Pages\Framework)
->press('Save Framework')
->assertSee('The name field is required.');
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment