X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcontact%2Fsrc%2FTests%2FViews%2FContactFieldsTest.php;fp=web%2Fcore%2Fmodules%2Fcontact%2Fsrc%2FTests%2FViews%2FContactFieldsTest.php;h=0000000000000000000000000000000000000000;hb=bfbba508964731508b9bd6d5835c2edc858db95b;hp=fafe451be5c18080a8b9a222d58961737dbca22c;hpb=cb9a80db11fc6b014e5b1e693a5a391c95eb5d9a;p=yaffs-website diff --git a/web/core/modules/contact/src/Tests/Views/ContactFieldsTest.php b/web/core/modules/contact/src/Tests/Views/ContactFieldsTest.php deleted file mode 100644 index fafe451be..000000000 --- a/web/core/modules/contact/src/Tests/Views/ContactFieldsTest.php +++ /dev/null @@ -1,65 +0,0 @@ -fieldStorage = FieldStorageConfig::create([ - 'field_name' => strtolower($this->randomMachineName()), - 'entity_type' => 'contact_message', - 'type' => 'text' - ]); - $this->fieldStorage->save(); - - ContactForm::create([ - 'id' => 'contact_message', - 'label' => 'Test contact form', - ])->save(); - - FieldConfig::create([ - 'field_storage' => $this->fieldStorage, - 'bundle' => 'contact_message', - ])->save(); - - $this->container->get('views.views_data')->clear(); - } - - /** - * Tests the views data generation. - */ - public function testViewsData() { - // Test that the field is not exposed to views, since contact_message - // entities have no storage. - $table_name = 'contact_message__' . $this->fieldStorage->getName(); - $data = $this->container->get('views.views_data')->get($table_name); - $this->assertFalse($data, 'The field is not exposed to Views.'); - } - -}