tests/Controller/SmokeTest.php
/**
     * This test ensures that whenever a user tries to
     * access one of those pages, responses are successful for User role.
     *
     * @dataProvider provideUserUrls
     */
This test ensures that whenever a user tries to
access one of those pages, responses are successful for User role.


This test ensures that whenever a user tries to access one of those pages responses are successful for User role .
public function testUserRoutesAreValidForAnUserRole(string $url): void
    {
        self::$webClient->setServerParameters([
            'PHP_AUTH_USER' => 'user0',
            'PHP_AUTH_PW' => 'password0',
        ]);
        self::$webClient->request('GET', $url);
        self::assertResponseIsSuccessful();
    }
public function testUserRoutesAreValidForAnUserRole ( string $ url ) : void { self :: $ webClient -> setServerParameters ( [ 'PHP_AUTH_USER' => 'user0' , 'PHP_AUTH_PW' => 'password0' , ] ) ; self :: $ webClient -> request ( 'GET' , $ url ) ; self :: assertResponseIsSuccessful ( ) ; }
This test ensures that whenever a user tries to
 access one of those pages, responses are successful for User role.
This test ensures that whenever a user tries to access one of those pages responses are successful for User role .