function EntityResourceTestBase::testCrud
Tests all CRUD operations in a single test method.
1 method overrides EntityResourceTestBase::testCrud()
- ConfigEntityResourceTestBase::testCrud in core/
modules/ rest/ tests/ src/ Functional/ EntityResource/ ConfigEntityResourceTestBase.php - Tests all CRUD operations in a single test method.
File
-
core/
modules/ rest/ tests/ src/ Functional/ EntityResource/ EntityResourceTestBase.php, line 420
Class
- EntityResourceTestBase
- Defines a base class for testing all entity resources.
Namespace
Drupal\Tests\rest\Functional\EntityResourceCode
public function testCrud() : void {
$this->doTestGet();
$this->doTestPost();
$this->doTestPatch();
$this->doTestDelete();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.