tests/Controller/SmokeTest.php
/**
     * This test ensures that whenever a user tries to
     * access one of those pages, a redirection to the login form is performed.
     *
     * @dataProvider provideSecureUrls
     */
This test ensures that whenever a user tries to
access one of those pages, a redirection to the login form is performed.


This test ensures that whenever a user tries to access one of those pages a redirection to the login form is performed .
public function testSecureUrlsRedirectingWellOnLoginForm(string $url): void
    {
        self::$webClient->request('GET', $url);
        self::assertResponseRedirects();
        self::assertSame('/en/login', self::$webClient->getResponse()->getTargetUrl());
    }
public function testSecureUrlsRedirectingWellOnLoginForm ( string $ url ) : void { self :: $ webClient -> request ( 'GET' , $ url ) ; self :: assertResponseRedirects ( ) ; self :: assertSame ( '/en/login' , self :: $ webClient -> getResponse ( ) -> getTargetUrl ( ) ) ; }
This test ensures that whenever a user tries to
 access one of those pages, a redirection to the login form is performed.
This test ensures that whenever a user tries to access one of those pages a redirection to the login form is performed .