Commit 463d469e authored by LKS90's avatar LKS90

Edited .travis.yml to print the test results, ammended some code sniffer...

Edited .travis.yml to print the test results, ammended some code sniffer errors (probably some left)
parent a8abc273
......@@ -90,6 +90,6 @@ script:
# Run the Coder sniffer for Flag.
- phpcs --report=full --standard=Drupal ./modules/$MODULE_NAME
# Run the Simpletests for Rules.
- php ./core/scripts/run-tests.sh --php `which php` --concurrency 12 --url http://localhost/ --verbose --color "$MODULE_TEST_GROUP"
- php ./core/scripts/run-tests.sh --php `which php` --concurrency 12 --url http://localhost/ --verbose --color "$MODULE_TEST_GROUP" | tee /tmp/test.txt; TEST_EXIT=${PIPESTATUS[0]}; echo $TEST_EXIT
# Run the PHPUnit tests.
- ./core/vendor/phpunit/phpunit/phpunit -c ./core/phpunit.xml.dist ./modules/$MODULE_NAME
......@@ -64,4 +64,5 @@ interface CaptchaPointInterface extends ConfigEntityInterface {
* {@inheritdoc}
*/
public function disable();
}
......@@ -51,4 +51,5 @@ class CaptchaPointDisableForm extends EntityConfirmFormBase {
$this->entity->save();
drupal_set_message($this->t('Captcha point %label has been disabled.', array('%label' => $this->entity->getOriginalId())));
}
}
......@@ -50,4 +50,5 @@ class CaptchaPointEnableForm extends EntityConfirmFormBase {
$this->entity->save();
drupal_set_message($this->t('Captcha point %label has been enabled.', array('%label' => $this->entity->label())));
}
}
......@@ -12,6 +12,10 @@ use Drupal\Core\Entity\EntityForm;
use Drupal\captcha\CaptchaPointInterface;
use Drupal\Core\Form\FormStateInterface;
/**
* Class CaptchaPointForm
* @package Drupal\captcha\Form
*/
class CaptchaPointForm extends EntityForm {
/**
......@@ -79,4 +83,5 @@ class CaptchaPointForm extends EntityForm {
}
$form_state->setRedirect('captcha_point.list');
}
}
......@@ -222,4 +222,5 @@ class CaptchaSettingsForm extends ConfigFormBase {
$this->cacheBackend->delete('captcha_placement_map_cache');
drupal_set_message($this->t('Cleared the CAPTCHA placement cache.'));
}
}
......@@ -334,7 +334,6 @@ class CaptchaAdminTestCase extends CaptchaBaseWebTestCase {
$captcha_point_module = 'captcha';
$captcha_point_type = 'Math';
$this->drupalLogin($this->adminUser);
$form_values = array(
......@@ -374,4 +373,5 @@ class CaptchaAdminTestCase extends CaptchaBaseWebTestCase {
$this->drupalPostForm(self::CAPTCHA_ADMIN_PATH . '/captcha-points/' . $captcha_point_form_id . '/delete', array(), 'Delete');
$this->assertRaw(t('Captcha point %label has been deleted.', array('%label' => $captcha_point_form_id)), 'Disabling of CAPTCHA point');
}
}
......@@ -213,4 +213,5 @@ class CaptchaPersistenceTestCase extends CaptchaBaseWebTestCase {
$this->assertCaptchaPresence(FALSE);
$this->assertDifferentCsid($captcha_sid_initial);
}
}
......@@ -189,4 +189,5 @@ class CaptchaTestCase extends CaptchaBaseWebTestCase {
$this->drupalGet('');
$this->assertCaptchaPresence(TRUE);
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment