for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SilverStripe\MFA\Tests\BasicMath;
use SilverStripe\Dev\SapphireTest;
use SilverStripe\MFA\BasicMath\Method;
use SilverStripe\MFA\Method\Handler\LoginHandlerInterface;
use SilverStripe\MFA\Method\Handler\RegisterHandlerInterface;
class MethodTest extends SapphireTest
{
public function testGetLoginHandler()
$method = new Method();
$this->assertInstanceOf(LoginHandlerInterface::class, $method->getLoginHandler());
}
public function testGetRegisterHandler()
$this->assertInstanceOf(RegisterHandlerInterface::class, $method->getRegisterHandler());