diff --git a/lib/common/Provider/Layout/DefaultUserInfoLayoutProvider.php b/lib/common/Provider/Layout/DefaultUserInfoLayoutProvider.php new file mode 100644 index 00000000..17906340 --- /dev/null +++ b/lib/common/Provider/Layout/DefaultUserInfoLayoutProvider.php @@ -0,0 +1,44 @@ + + * @package WBW\Bundle\CommonBundle\Provider\Layout + */ +class DefaultUserInfoLayoutProvider implements UserInfoLayoutProviderInterface { + + /** + * Constructor. + */ + public function __construct() { + // NOTHING TO DO + } + + /** + * {@inheritDoc} + */ + public function provideRegisterLink(): ?bool { + return false; + } + + /** + * {@inheritDoc} + */ + public function provideResettingLink(): ?bool { + return false; + } +} diff --git a/lib/common/Tests/Provider/Layout/DefaultUserInfoLayoutProviderTest.php b/lib/common/Tests/Provider/Layout/DefaultUserInfoLayoutProviderTest.php new file mode 100644 index 00000000..99423814 --- /dev/null +++ b/lib/common/Tests/Provider/Layout/DefaultUserInfoLayoutProviderTest.php @@ -0,0 +1,65 @@ + + * @package WBW\Bundle\CommonBundle\Tests\Layout + */ +class DefaultUserInfoLayoutProviderTest extends AbstractTestCase { + + /** + * Test provideRegisterLink() + * + * @return void + */ + public function testProvideRegisterLink(): void { + + $obj = new DefaultUserInfoLayoutProvider(); + + $this->assertFalse($obj->provideRegisterLink()); + } + + /** + * Test provideResettingLink() + * + * @return void + */ + public function testProvideResettingLink(): void { + + $obj = new DefaultUserInfoLayoutProvider(); + + $this->assertFalse($obj->provideResettingLink()); + } + + /** + * Test __construct() + * + * @return void + */ + public function test__construct(): void { + + $obj = new DefaultUserInfoLayoutProvider(); + + $this->assertInstanceOf(LayoutProviderInterface::class, $obj); + $this->assertInstanceOf(UserInfoLayoutProviderInterface::class, $obj); + } +}