@@ -92,7 +92,7 @@ public function testUpdateNotExists(): void
9292 {
9393 $data = $this->getJsonFixture('update_{{ $snake_entity } } _request.json');
9494
95- $response = $this->novaActingAs(self::$user)->novaUpdateResource ({{ $entity } } ::class, 0, $data);
95+ $response = $this->novaActingAs(self::$user)->novaUpdateResourceAPICall ({{ $entity } } ::class, 0, $data);
9696
9797@if ($shouldUseStatus )
9898 $response->assertStatus(Response::HTTP_NOT_FOUND);
@@ -103,7 +103,7 @@ public function testUpdateNotExists(): void
103103
104104 public function testUpdateNoAuth(): void
105105 {
106- $response = $this->novaUpdateResource ({{ $entity } } ::class, 1);
106+ $response = $this->novaUpdateResourceAPICall ({{ $entity } } ::class, 1);
107107
108108@if ($shouldUseStatus )
109109 $response->assertStatus(Response::HTTP_UNAUTHORIZED);
@@ -128,7 +128,7 @@ public function testUpdateValidationError(): void
128128
129129 public function testGetUpdatableFields(): void
130130 {
131- $response = $this->novaActingAs(self::$user)->novaGetUpdatableFields ({{ $entity } } ::class, 1);
131+ $response = $this->novaActingAs(self::$user)->novaGetUpdatableFieldsAPICall ({{ $entity } } ::class, 1);
132132
133133@if ($shouldUseStatus )
134134 $response->assertStatus(Response::HTTP_OK);
@@ -270,9 +270,9 @@ public function getRun{{$entity}}ActionsData(): array
270270 /**
271271 * @dataProvider getRun{{ $entity } } ActionsData
272272 */
273- public function testRun{{ $entity } } Actions($action, $request, ${{ $lower_entities } } StateFixture ): void
273+ public function testRun{{ $entity } } Actions($action, $request, $state ): void
274274 {
275- $response = $this->novaActingAs(self::$user)->json('post', "/nova-api/ {{ $url_path } } /action?action={ $action}" , $request);
275+ $response = $this->novaActingAs(self::$user)->novaRunActionAPICall( {{ $entity } } ::class, $action, $request);
276276
277277@if ($shouldUseStatus )
278278 $response->assertStatus(Response::HTTP_OK);
@@ -283,7 +283,7 @@ public function testRun{{$entity}}Actions($action, $request, ${{$lower_entities}
283283 $this->assertEmpty($response->getContent());
284284
285285 // TODO: Need to remove after first successful start
286- self::${{ $dromedary_entity } } State->assertChangesEqualsFixture(${{ $lower_entities } } StateFixture , true);
286+ self::${{ $dromedary_entity } } State->assertChangesEqualsFixture($state , true);
287287 }
288288
289289 public function get{{ $entity } } ActionsData(): array
0 commit comments