We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57cec7c commit c4681eaCopy full SHA for c4681ea
tests/src/Functional/BluecadetUtilitiesTest.php
@@ -77,4 +77,22 @@ public function testBasicFunc() {
77
$this->assertSession()->statusCodeEquals(200);
78
}
79
80
+ /**
81
+ * Test Access to TextFieldSearch form.
82
+ */
83
+ public function testTextFieldSearch() {
84
+ $session = $this->assertSession();
85
+
86
+ $this->assertTrue(TRUE);
87
88
+ // Should get a 403 when logged out.
89
+ $this->drupalGet('bluecadet_utilities.text_field_search');
90
+ $this->assertSession()->statusCodeEquals(403);
91
92
+ // Should get a 200 when logged in as an admin.
93
+ $this->drupalLogin($this->adminUser);
94
95
+ $this->assertSession()->statusCodeEquals(200);
96
+ }
97
98
0 commit comments