social_auth_vipps-8.x-2.1/tests/src/Functional/SocialAuthVippsLoginBlockTest.php
tests/src/Functional/SocialAuthVippsLoginBlockTest.php
<?php
namespace Drupal\Tests\social_auth_vipps\Functional;
use Drupal\Tests\social_auth\Functional\SocialAuthTestBase;
/**
* Test that path to authentication route exists in Social Auth Login block.
*
* @group social_auth
*
* @ingroup social_auth_vipps
*/
class SocialAuthVippsLoginBlockTest extends SocialAuthTestBase {
/**
* Modules to enable.
*
* @var array
*/
protected static $modules = ['block', 'social_auth_vipps'];
/**
* {@inheritdoc}
*/
protected function setUp() : void {
parent::setUp();
$this->provider = 'vipps';
}
/**
* Test that the path is included in the login block.
*
* @throws \Behat\Mink\Exception\ResponseTextException
*/
public function testLinkExistsInBlock() {
$this->checkLinkToProviderExists();
}
}
