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
*/
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
*/
public function testToggleDomain()
{
$this->be($this->user());
$this->call('GET', route('admin.users.domains.block-toggle', ['example.com']));
$this->assertSessionHas('message');
$this->assertResponseStatus(302);
}
}