public function test_add_password_field() { // Test for field label in output $e = new WP_Error(); $this->expectOutputRegex('/<\\/label>/'); \Pressbooks\Registration\add_password_field($e); }