Tried going to the testing UI and it bailed missing a group notation.
admin/config/development/testing
The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">Drupal\simpletest\Exception\MissingGroupException</em>: Missing @group annotation in Drupal\Tests\conditional_fields\FunctionalJavascript\ConditionalFieldBaseTest in <em class="placeholder">Drupal\simpletest\TestDiscovery::getTestInfo()</em> (line <em class="placeholder">355</em> of <em class="placeholder">core/modules/simpletest/src/TestDiscovery.php</em>). <pre class="backtrace">Drupal\simpletest\TestDiscovery->getTestClasses() (Line: 151)
Drupal\simpletest\Form\SimpletestTestForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 514)
Drupal\Core\Form\FormBuilder->retrieveForm('simpletest_test_form', Object) (Line: 271)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 74)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 574)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array) (Line: 144)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 64)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 656)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
</pre>
Comments
Comment #2
joelpittetHere's the patch, I checked the other tests and this is the only one that failed.
Comment #3
zviryatko commentedI've removed this line from this class, because if you run through
php scripts/rus-tests.shyou receive fatal error, cause simpletest don't see any difference between test class and abstract class and tried to instantiate instance of abstract class.What need to do:
manually check that tests can be run through admin UI
admin/config/development/testing,php scripts/rus-tests.shscript and also through./vendor/bin/phpunitComment #4
mile23So this is an abstract base class that ends in *Test. This confuses the @group parser, which just looks for files ending in *Test.php. If you run the tests using the phpunit tool, you'll have a similar problem, because the test runner there only looks for *Test.php and runs whatever it finds.
Rename the base class to
ConditionalFieldTestBase. Then you won't need to add a group, and the tests will run.Comment #5
joelpittetThank you @Mile24, here's a rename patch.
Comment #7
OlgaRabodzei commentedHello! Thank You for the patch, Joël.