mirror of
https://github.com/flextype/flextype.git
synced 2025-07-31 18:30:17 +02:00
fix(tests): fixes for tests
This commit is contained in:
@@ -730,8 +730,8 @@ parsers:
|
||||
class: "Flextype\\Parsers\\Expressions\\WhenExpression"
|
||||
unless:
|
||||
enabled: true
|
||||
class: "Flextype\\Parsers\\Expressions\\UnlessnExpression"
|
||||
|
||||
class: "Flextype\\Parsers\\Expressions\\UnlessExpression"
|
||||
|
||||
# CORS
|
||||
#
|
||||
# CORS (Cross-origin resource sharing) allows JavaScript web apps to make HTTP requests to other domains.
|
||||
|
6
tests/fixtures/settings/settings.yaml
vendored
6
tests/fixtures/settings/settings.yaml
vendored
@@ -725,6 +725,12 @@ parsers:
|
||||
url:
|
||||
enabled: true
|
||||
class: "Flextype\\Parsers\\Expressions\\UrlExpression"
|
||||
when:
|
||||
enabled: true
|
||||
class: "Flextype\\Parsers\\Expressions\\WhenExpression"
|
||||
unless:
|
||||
enabled: true
|
||||
class: "Flextype\\Parsers\\Expressions\\UnlessExpression"
|
||||
|
||||
# CORS
|
||||
#
|
||||
|
@@ -26,6 +26,6 @@ test('time expression', function () {
|
||||
|
||||
test('strtotime expression', function () {
|
||||
$date = strtotime("10 September 2000");
|
||||
entries()->create('strtotime', ['test' => '[[ strtotime("10 September 2000") ]]']);
|
||||
entries()->create('strtotime', ['test' => '@type[int] [[ strtotime("10 September 2000") ]]']);
|
||||
expect(entries()->fetch('strtotime')['test'])->toBe($date);
|
||||
});
|
Reference in New Issue
Block a user