-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set 404 exception if dataset ID isn't found. #4379
base: 2.x
Are you sure you want to change the base?
Conversation
24caef8
to
d57c3e3
Compare
d57c3e3
to
21d87a2
Compare
use Drupal\Tests\BrowserTestBase; | ||
use GuzzleHttp\RequestOptions; | ||
|
||
class DatasetControllerTest extends BrowserTestBase { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't actually testing the dkan_js_frontend controller, because the module is not enabled for this test. It's getting a 404 because it's not a valid URL either way, but it's just coming from normal Drupal routing and node controller. That's why it's getting flagged for test coverage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @dafeder. That hadn't occurred to me. I'll fix.
…s_frontend is enabled.
Fixes [issue#]
6711
QA Steps