33 lines
912 B
PHP
33 lines
912 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
it('magazin list page loads successfully', function () {
|
|
$this->get('/magazin')
|
|
->assertSuccessful()
|
|
->assertSee('Magazin');
|
|
});
|
|
|
|
it('magazin list shows all five articles', function () {
|
|
$this->get('/magazin')
|
|
->assertSuccessful()
|
|
->assertSee('Escrow-System')
|
|
->assertSee('Al Jaddaf')
|
|
->assertSee('Turnkey-Investments')
|
|
->assertSee('Supply-Chain-Management')
|
|
->assertSee('Local for Local');
|
|
});
|
|
|
|
it('magazin detail page loads for article 1', function () {
|
|
$this->get('/magazin/1')
|
|
->assertSuccessful()
|
|
->assertSee('Escrow-System')
|
|
->assertSee('Dubai Land Department');
|
|
});
|
|
|
|
it('magazin detail page loads for article 5', function () {
|
|
$this->get('/magazin/5')
|
|
->assertSuccessful()
|
|
->assertSee('Local for Local')
|
|
->assertSee('Support your Locals');
|
|
});
|