@@ -59,7 +59,7 @@ public function testSiteResolver() {
5959 /** @var \Drupal\next\Entity\NextEntityTypeConfigInterface $entity_type_config */
6060 $ entity_type_config = NextEntityTypeConfig::create ([
6161 'id ' => 'node.page ' ,
62- 'preview_enabled ' => FALSE ,
62+ 'draft_enabled ' => FALSE ,
6363 'site_resolver ' => 'site_selector ' ,
6464 'configuration ' => [
6565 'sites ' => [
@@ -124,7 +124,7 @@ public function testRevalidator() {
124124 /** @var \Drupal\next\Entity\NextEntityTypeConfigInterface $entity_type_config */
125125 $ entity_type_config = NextEntityTypeConfig::create ([
126126 'id ' => 'node.page ' ,
127- 'preview_enabled ' => FALSE ,
127+ 'draft_enabled ' => FALSE ,
128128 'site_resolver ' => 'site_selector ' ,
129129 'configuration ' => [
130130 'sites ' => [
@@ -142,19 +142,19 @@ public function testRevalidator() {
142142 }
143143
144144 /**
145- * Tests the preview enabled property.
145+ * Tests the draft enabled property.
146146 *
147- * @covers ::isPreviewEnabled
147+ * @covers ::isDraftEnabled
148148 */
149- public function testPreviewEnabled () {
149+ public function testDraftEnabled () {
150150 $ blog_site = NextSite::create (['id ' => 'blog ' ]);
151151 $ blog_site ->save ();
152152
153153 // Create entity type config.
154154 /** @var \Drupal\next\Entity\NextEntityTypeConfigInterface $entity_type_config */
155155 $ entity_type_config = NextEntityTypeConfig::create ([
156156 'id ' => 'node.page ' ,
157- 'preview_enabled ' => TRUE ,
157+ 'draft_enabled ' => TRUE ,
158158 'site_resolver ' => 'site_selector ' ,
159159 'configuration ' => [
160160 'sites ' => [
@@ -163,10 +163,10 @@ public function testPreviewEnabled() {
163163 ],
164164 ]);
165165 $ entity_type_config ->save ();
166- $ this ->assertTrue ($ entity_type_config ->isPreviewEnabled ());
166+ $ this ->assertTrue ($ entity_type_config ->isDraftEnabled ());
167167
168- $ entity_type_config ->set ('preview_enabled ' , FALSE )->save ();
169- $ this ->assertFalse ($ entity_type_config ->isPreviewEnabled ());
168+ $ entity_type_config ->set ('draft_enabled ' , FALSE )->save ();
169+ $ this ->assertFalse ($ entity_type_config ->isDraftEnabled ());
170170 }
171171
172172}
0 commit comments