be($this->user());
$this->call('GET', route('admin.users.domains'));
$this->assertResponseStatus(200);
// has bread crumb
$this->see('
');
}
/**
* @covers \FireflyIII\Http\Controllers\Admin\DomainController::manual
* Implement testManual().
*/
public function testManual()
{
$this->be($this->user());
$this->call('POST', route('admin.users.domains.manual'), ['domain' => 'example2.com']);
$this->assertSessionHas('success');
$this->assertResponseStatus(302);
}
/**
* @covers \FireflyIII\Http\Controllers\Admin\DomainController::toggleDomain
* Implement testToggleDomain().
*/
public function testToggleDomain()
{
$this->be($this->user());
$this->call('GET', route('admin.users.domains.block-toggle', ['example.com']));
$this->assertSessionHas('message');
$this->assertResponseStatus(302);
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
}