public function AgreementHandlerTest::agreeProvider in Agreement 8.2
Same name and namespace in other branches
- 3.0.x tests/src/Unit/AgreementHandlerTest.php \Drupal\Tests\agreement\Unit\AgreementHandlerTest::agreeProvider()
Provides expected values for the agree method.
Return value
array An array of test arguments.
File
- tests/
src/ Unit/ AgreementHandlerTest.php, line 105
Class
- AgreementHandlerTest
- Tests logic in the agreement handler service.
Namespace
Drupal\Tests\agreement\UnitCode
public function agreeProvider() {
return [
'without error' => [
TRUE,
NULL,
],
'with error in delete' => [
FALSE,
'delete',
],
'with error in insert' => [
FALSE,
'insert',
],
];
}