diff --git a/tests/IntegrationTest.php b/tests/IntegrationTest.php index 3be62d5d..ef7c8b3e 100644 --- a/tests/IntegrationTest.php +++ b/tests/IntegrationTest.php @@ -40,12 +40,6 @@ public function testIntegration(string $folder) $actualFilename = $buildConfig->getOutputDir().'/'.$relativePath; $this->assertFileExists($actualFilename); -if(str_contains($expectedFile, 'datetime.html')) { - $this->markTestSkipped('Temporarily disabled becuase I cannot make it work'); - - return; -} - $this->assertSame( // removes odd trailing space the indenter is adding str_replace(" \n", "\n", $indenter->indent($expectedFile->getContents())), diff --git a/tests/fixtures/expected/main/datetime.html b/tests/fixtures/expected/main/datetime.html index 1e701b03..c75b859e 100644 --- a/tests/fixtures/expected/main/datetime.html +++ b/tests/fixtures/expected/main/datetime.html @@ -1,224 +1,328 @@ -
- - - - - - -This field type allows the user to modify data that represents a specific +
+ + + +This field type allows the user to modify data that represents a specific
date and time (e.g. 1984-06-05 12:15:30
).
Underlying Data Type | -can be DateTime , string, timestamp, or array (see the input option) |
- ||||||||||||||
Rendered as | -single text box or three select fields | -||||||||||||||
Options | -- | -||||||||||||||
Overridden options | -- | -||||||||||||||
Parent type | -FormType | -||||||||||||||
Class | -DateTimeType | -||||||||||||||
Ref | -Some Test Docs!
+
+
- Field Options-
- The date_format Option-type: Defines the |
type: integer
or string
default: IntlDateFormatter::MEDIUM
Defines the format
option that will be passed down to the date field.
for more details.
- - Tip -
This is a little tip about something! We an also talk about specific +
+ + Tip +
+This is a little tip about something! We an also talk about specific methods: doRequest(). -Or a namespace: Constraints. +Or a namespace: Constraints. Or a PHP function: parse_ini_file. Or a PHP method! Locale::getDefault().
-Date widget!
-- - Note -
Sometimes we add notes. But not too often because they interrupt the flow. +
Date widget!
++ + Note +
+Sometimes we add notes. But not too often because they interrupt the flow. FormType Documentation
-This is included documentation about the date_widget
option.
- -New in version 2.6
-The placeholder
option was introduced in Symfony 2.6 and replaces
+
This is included documentation about the date_widget
option.
+ 2.6 +
+The placeholder
option was introduced in Symfony 2.6 and replaces
empty_value
, which is available prior to 2.6.
-FormType Documentation
type: string
| array
If your widget option is set to choice
, then this field will be represented
+FormType Documentation
type: string
| array
If your widget option is set to choice
, then this field will be represented
as a series of select
boxes. When the placeholder value is a string,
it will be used as the blank value of all select boxes:
1
+
+
+ 1
2
3
4
5
- use Symfony\Component\Form\Extension\Core\Type\DateTimeType;
-
-$builder->add('startDateTime', DateTimeType::class, array(
- 'placeholder' => 'Select a value',
-));
-
-
-
-
-
- See also
-
Also check out the homepage - Some Test Docs!.
+
+
+ use
+ Symfony
+ \
+ Component
+ \
+ Form
+ \
+ Extension
+ \
+ Core
+ \
+ Type
+ \
+ DateTimeType
+ ;
+
+ $
+ builder
+
+ ->
+ add(
+ 'startDateTime'
+ , DateTimeType
+ ::
+ class,
+ array
+ (
+ 'placeholder'
+ =>
+ 'Select a value'
+ ,
+));
+
+
+
+
+ + See also +
+Also check out the homepage - Some Test Docs!. FormType Documentation
-Custom classes for links are also cool:
- - -type: string
default: Symfony
If the widget
option is set to single_text
, this option specifies
+
Custom classes for links are also cool:
+ +
+ type: string
default:
+
+ Symfony
+
+
If the widget
option is set to single_text
, this option specifies
the format of the input, i.e. how Symfony will interpret the given input
as a datetime string. See Date/Time Format Syntax.
- - Caution -
Using too many sidebars or caution directives can be distracting!
-- Best Practice -
Use the bcrypt encoder for hashing your users' passwords.
-type: string
default: null
Defines the widget
option for both the DateType
.
+
+ + Caution +
+Using too many sidebars or caution directives can be distracting!
++ Best Practice +
+Use the bcrypt encoder for hashing your users' passwords.
+type: string
default: null
Defines the widget
option for both the DateType
.
and TimeType
. This can be overridden
with the date_widget and time_widget options.
default: false
We also support code blocks!
-1 +
default: false
We also support code blocks!
+1 2 3-
# app/config/parameters.yml
-parameters:
- database_driver: pdo_mysql
-
- And configuration blocks:
-1
+
+
+ # app/config/parameters.yml
+ parameters:
+ database_driver:
+ pdo_mysql
+
+
+
And configuration blocks:
+1 2 3 4 5 6 7-
# app/config/config.yml
-framework:
- secret: '%secret%'
- router: { resource: '%kernel.root_dir%/config/routing.yml' }
- # ...
-
-# ...
-
- Variable | -Type | -Usage | -|||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
widget | -mixed |
- The value of the widget option |
- |||||||||
type | -string |
- Multiple lines of text here, to show
+
+ + Field Variables ++
+
-
- Url checker errors-This is a 404 error. + |
This is a 404 error. And here is an invalid url invalid-url.
+