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()); } }