Loading core/modules/jsonapi/tests/src/Functional/CommentTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -383,7 +383,7 @@ protected static function getExpectedCollectionCacheability(AccountInterface $ac /** * {@inheritdoc} */ public function testPatchIndividual(): void { protected function doTestPatchIndividual(): void { // Ensure ::getModifiedEntityForPatchTesting() can pick an alternative value // for the 'entity_id' field. EntityTest::create([ Loading @@ -391,7 +391,7 @@ public function testPatchIndividual(): void { 'type' => 'bar', ])->save(); parent::testPatchIndividual(); parent::doTestPatchIndividual(); } } core/modules/jsonapi/tests/src/Functional/FileTest.php +8 −3 Original line number Diff line number Diff line Loading @@ -201,11 +201,16 @@ protected function getPostDocument() { } /** * {@inheritdoc} * Tests POST/PATCH/DELETE for an individual resource. */ public function testPostIndividual(): void { public function testIndividual(): void { // @todo https://www.drupal.org/node/1927648 $this->markTestSkipped(); // Add doTestPostIndividual(). $this->doTestPatchIndividual(); $this->entity = $this->resaveEntity($this->entity, $this->account); $this->revokePermissions(); $this->config('jsonapi.settings')->set('read_only', TRUE)->save(TRUE); $this->doTestDeleteIndividual(); } /** Loading core/modules/jsonapi/tests/src/Functional/FileUploadTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -113,7 +113,7 @@ class FileUploadTest extends ResourceTestBase { * * @var array */ const SKIP_METHODS = ['testGetIndividual', 'testPostIndividual', 'testPatchIndividual', 'testDeleteIndividual', 'testCollection', 'testRelationships']; const SKIP_METHODS = ['testGetIndividual', 'testIndividual', 'testCollection', 'testRelationships']; /** * {@inheritdoc} Loading core/modules/jsonapi/tests/src/Functional/MediaTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -360,10 +360,10 @@ protected function getExpectedUnauthorizedAccessCacheability() { /** * {@inheritdoc} */ public function testPostIndividual(): void { protected function doTestPostIndividual(): void { // @todo Mimic \Drupal\Tests\rest\Functional\EntityResource\Media\MediaResourceTestBase::testPost() // @todo Later, use https://www.drupal.org/project/drupal/issues/2958554 to upload files rather than the REST module. parent::testPostIndividual(); parent::doTestPostIndividual(); } /** Loading core/modules/jsonapi/tests/src/Functional/MessageTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -132,7 +132,7 @@ public function testGetIndividual(): void { /** * {@inheritdoc} */ public function testPatchIndividual(): void { protected function doTestPatchIndividual(): void { // Contact Message entities are not stored, so they cannot be modified. $this->expectException(RouteNotFoundException::class); $this->expectExceptionMessage('Route "jsonapi.contact_message--camelids.individual" does not exist.'); Loading @@ -143,7 +143,7 @@ public function testPatchIndividual(): void { /** * {@inheritdoc} */ public function testDeleteIndividual(): void { protected function doTestDeleteIndividual(): void { // Contact Message entities are not stored, so they cannot be deleted. $this->expectException(RouteNotFoundException::class); $this->expectExceptionMessage('Route "jsonapi.contact_message--camelids.individual" does not exist.'); Loading Loading
core/modules/jsonapi/tests/src/Functional/CommentTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -383,7 +383,7 @@ protected static function getExpectedCollectionCacheability(AccountInterface $ac /** * {@inheritdoc} */ public function testPatchIndividual(): void { protected function doTestPatchIndividual(): void { // Ensure ::getModifiedEntityForPatchTesting() can pick an alternative value // for the 'entity_id' field. EntityTest::create([ Loading @@ -391,7 +391,7 @@ public function testPatchIndividual(): void { 'type' => 'bar', ])->save(); parent::testPatchIndividual(); parent::doTestPatchIndividual(); } }
core/modules/jsonapi/tests/src/Functional/FileTest.php +8 −3 Original line number Diff line number Diff line Loading @@ -201,11 +201,16 @@ protected function getPostDocument() { } /** * {@inheritdoc} * Tests POST/PATCH/DELETE for an individual resource. */ public function testPostIndividual(): void { public function testIndividual(): void { // @todo https://www.drupal.org/node/1927648 $this->markTestSkipped(); // Add doTestPostIndividual(). $this->doTestPatchIndividual(); $this->entity = $this->resaveEntity($this->entity, $this->account); $this->revokePermissions(); $this->config('jsonapi.settings')->set('read_only', TRUE)->save(TRUE); $this->doTestDeleteIndividual(); } /** Loading
core/modules/jsonapi/tests/src/Functional/FileUploadTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -113,7 +113,7 @@ class FileUploadTest extends ResourceTestBase { * * @var array */ const SKIP_METHODS = ['testGetIndividual', 'testPostIndividual', 'testPatchIndividual', 'testDeleteIndividual', 'testCollection', 'testRelationships']; const SKIP_METHODS = ['testGetIndividual', 'testIndividual', 'testCollection', 'testRelationships']; /** * {@inheritdoc} Loading
core/modules/jsonapi/tests/src/Functional/MediaTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -360,10 +360,10 @@ protected function getExpectedUnauthorizedAccessCacheability() { /** * {@inheritdoc} */ public function testPostIndividual(): void { protected function doTestPostIndividual(): void { // @todo Mimic \Drupal\Tests\rest\Functional\EntityResource\Media\MediaResourceTestBase::testPost() // @todo Later, use https://www.drupal.org/project/drupal/issues/2958554 to upload files rather than the REST module. parent::testPostIndividual(); parent::doTestPostIndividual(); } /** Loading
core/modules/jsonapi/tests/src/Functional/MessageTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -132,7 +132,7 @@ public function testGetIndividual(): void { /** * {@inheritdoc} */ public function testPatchIndividual(): void { protected function doTestPatchIndividual(): void { // Contact Message entities are not stored, so they cannot be modified. $this->expectException(RouteNotFoundException::class); $this->expectExceptionMessage('Route "jsonapi.contact_message--camelids.individual" does not exist.'); Loading @@ -143,7 +143,7 @@ public function testPatchIndividual(): void { /** * {@inheritdoc} */ public function testDeleteIndividual(): void { protected function doTestDeleteIndividual(): void { // Contact Message entities are not stored, so they cannot be deleted. $this->expectException(RouteNotFoundException::class); $this->expectExceptionMessage('Route "jsonapi.contact_message--camelids.individual" does not exist.'); Loading