once() ->andReturn(true); $request = new TwoFAccountBatchRequest; $this->assertTrue($request->authorize()); } #[Test] #[DataProviderExternal(TwoFAccountDataProvider::class, 'validIdsProvider')] public function test_valid_data(array $data) : void { $request = new TwoFAccountBatchRequest; $validator = Validator::make($data, $request->rules()); $this->assertFalse($validator->fails()); } #[Test] #[DataProviderExternal(TwoFAccountDataProvider::class, 'invalidIdsProvider')] public function test_invalid_data(array $data) : void { $request = new TwoFAccountBatchRequest; $validator = Validator::make($data, $request->rules()); $this->assertTrue($validator->fails()); } }