once() ->andReturn(true); $request = new TwoFAccountDynamicRequest(); $this->assertTrue($request->authorize()); } /** * @test */ public function test_returns_TwoFAccountUriRequest_rules_when_has_uri_input() { $twofaccountUriRequest = new TwoFAccountUriRequest(); $request = new TwoFAccountDynamicRequest(); $request->merge(['uri' => 'uristring']); $this->assertEquals($twofaccountUriRequest->rules(), $request->rules()); } /** * @test */ public function test_returns_TwoFAccountStoreRequest_rules_otherwise() { $twofaccountStoreRequest = new TwoFAccountStoreRequest(); $request = new TwoFAccountDynamicRequest(); $this->assertEquals($twofaccountStoreRequest->rules(), $request->rules()); } }