setSystemConfiguration('user.registration', false); $this->request($client, $route); $this->assertRouteNotFound($client); } public function testRegisterWithDeactivatedFeature() { $this->testRegisterActionWithDeactivatedFeature('/register/'); } public function testCheckEmailWithDeactivatedFeature() { $this->testRegisterActionWithDeactivatedFeature('/register/check-email'); } public function testConfirmWithDeactivatedFeature() { $this->testRegisterActionWithDeactivatedFeature('/register/confirm/123123'); } public function testConfirmedWithDeactivatedFeature() { $this->testRegisterActionWithDeactivatedFeature('/register/confirmed'); } public function testRegisterAccountPageIsRendered() { $client = self::createClient(); $this->setSystemConfiguration('user.registration', true); $this->request($client, '/register/'); $response = $client->getResponse(); $this->assertTrue($response->isSuccessful()); $content = $response->getContent(); $this->assertStringContainsString('