File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 33namespace Drupal \views \Plugin \views \query ;
44
55use Drupal \Core \Database \Connection ;
6+ use Drupal \Core \DependencyInjection \DependencySerializationTrait ;
67
78/**
89 * PostgreSQL-specific date handling.
1415 */
1516class PostgresqlDateSql implements DateSqlInterface {
1617
18+ use DependencySerializationTrait;
19+
1720 /**
1821 * The database connection.
1922 *
Original file line number Diff line number Diff line change 33namespace Drupal \views \Plugin \views \query ;
44
55use Drupal \Core \Database \Connection ;
6+ use Drupal \Core \DependencyInjection \DependencySerializationTrait ;
67
78/**
89 * SQLite-specific date handling.
1415 */
1516class SqliteDateSql implements DateSqlInterface {
1617
18+ use DependencySerializationTrait;
19+
1720 /**
1821 * The database connection.
1922 *
Original file line number Diff line number Diff line change @@ -82,6 +82,9 @@ public function testViewElementEmbed() {
8282 $ this ->assertEqual ($ render ['#embed ' ], TRUE );
8383 $ this ->setRawContent ($ renderer ->renderRoot ($ render ));
8484
85+ // Ensure that the render array can be serialized.
86+ serialize ($ render );
87+
8588 $ xpath = $ this ->xpath ('//div[@class="views-element-container"] ' );
8689 $ this ->assertTrue ($ xpath , 'The view container has been found in the rendered output. ' );
8790
You can’t perform that action at this time.
0 commit comments