You are here

public function RestfulPassThroughTestCase::testEntity in RESTful 7.2

Same name and namespace in other branches
  1. 7 tests/RestfulPassThroughTestCase.test \RestfulPassThroughTestCase::testEntity()

Test the pass-through property for an entity.

File

tests/RestfulPassThroughTestCase.test, line 32
Contains RestfulPassThroughTestCase

Class

RestfulPassThroughTestCase
@file Contains RestfulPassThroughTestCase

Code

public function testEntity() {
  $handler = restful_get_restful_handler('articles', 1, 1);
  $base_request = array(
    'label' => $this
      ->randomName(),
  );
  $this
    ->validatePassThrough($handler, $base_request, TRUE);
}