| @@ 33-45 (lines=13) @@ | ||
| 30 | /** |
|
| 31 | * {@inheritdoc} |
|
| 32 | */ |
|
| 33 | protected function setUp() { |
|
| 34 | parent::setUp(); |
|
| 35 | $this->installEntitySchema('node'); |
|
| 36 | $this->installConfig(['node', 'filter']); |
|
| 37 | $this->installSchema('node', 'node_access'); |
|
| 38 | ||
| 39 | $this->createContentType(['type' => 'a']); |
|
| 40 | $this->createContentType(['type' => 'b']); |
|
| 41 | ||
| 42 | Role::load('anonymous') |
|
| 43 | ->grantPermission('access content') |
|
| 44 | ->save(); |
|
| 45 | } |
|
| 46 | ||
| 47 | /** |
|
| 48 | * Test that entity queries work. |
|
| @@ 39-56 (lines=18) @@ | ||
| 36 | /** |
|
| 37 | * {@inheritdoc} |
|
| 38 | */ |
|
| 39 | protected function setUp() { |
|
| 40 | parent::setUp(); |
|
| 41 | $this->installConfig('node'); |
|
| 42 | $this->installConfig('filter'); |
|
| 43 | $this->installEntitySchema('node'); |
|
| 44 | $this->installSchema('node', 'node_access'); |
|
| 45 | $this->createContentType(['type' => 'test']); |
|
| 46 | ||
| 47 | Role::load('anonymous') |
|
| 48 | ->grantPermission('access content') |
|
| 49 | ->save(); |
|
| 50 | ||
| 51 | EntityViewMode::create([ |
|
| 52 | 'targetEntityType' => 'node', |
|
| 53 | 'id' => "node.graphql", |
|
| 54 | ])->save(); |
|
| 55 | ||
| 56 | } |
|
| 57 | ||
| 58 | public function testRouteEntity() { |
|
| 59 | $node = $this->createNode([ |
|