fix tests
This commit is contained in:
@@ -27,7 +27,7 @@ class ApiBusinessRuleEdgeCaseContractTest extends FullSurfaceE2EContractCase
|
||||
$response = $this->requestAs($this->actorFor($uri), $method, $uri, $payload);
|
||||
$this->assertNoServerError($response, "$method $uri mismatched academic context");
|
||||
$this->assertStatusIn($response, [200, 201, 202, 204, 302, 400, 401, 403, 404, 409, 419, 422], "$method $uri mismatched academic context");
|
||||
$this->assertStringNotContainsStringIgnoringCase('foreign key constraint', $response->getContent(), $uri . ' should validate academic context before DB failure leaks.');
|
||||
$this->assertStringNotContainsStringIgnoringCase('foreign key constraint', $response->getContent(), $uri.' should validate academic context before DB failure leaks.');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,8 +51,8 @@ class ApiBusinessRuleEdgeCaseContractTest extends FullSurfaceE2EContractCase
|
||||
|
||||
$response = $this->requestAs($this->admin, $method, $uri, $payload);
|
||||
$this->assertNoServerError($response, "$method $uri amount $amount");
|
||||
$this->assertStringNotContainsStringIgnoringCase('decimal', $response->getContent(), $uri . ' should not leak decimal cast internals.');
|
||||
$this->assertStringNotContainsStringIgnoringCase('SQLSTATE', $response->getContent(), $uri . ' should not leak SQLSTATE for financial edge cases.');
|
||||
$this->assertStringNotContainsStringIgnoringCase('decimal', $response->getContent(), $uri.' should not leak decimal cast internals.');
|
||||
$this->assertStringNotContainsStringIgnoringCase('SQLSTATE', $response->getContent(), $uri.' should not leak SQLSTATE for financial edge cases.');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user