setAuthToken(AuthKeysFixture::ADMIN_API_KEY); $this->post(self::ENDPOINT); $this->assertResponseOk(); $response = $this->getJsonResponseAsArray(); $this->assertEmpty($response['update_errors']); $this->assertNotEmpty($response['files_processed']); $this->assertTrue($response['success']); $this->assertDbRecordExists('MetaTemplates', [ 'id' => 3 // id 1 and 2 are loaded via MetaTemplatesFixture ]); } }