I hereby claim:
- I am jhedstrom on github.
- I am jhedstrom (https://keybase.io/jhedstrom) on keybase.
- I have a public key whose fingerprint is EDCF B052 5C7D 0FD2 5491 12DB 846B C2BE 8B13 F40F
To claim this, I am signing this object:
<?php | |
/** | |
* Run before every scenario. | |
* | |
* @BeforeScenario | |
*/ | |
public function beforeScenario() { | |
if ($basic_auth = $this->getDrupalParameter('basic_auth')) { | |
$driver = $this->getSession()->getDriver(); | |
if ($driver instanceof Selenium2Driver) { |
<?php | |
/** | |
* @file | |
* Contains \Drupal\node\Tests\NodeViewTest. | |
*/ | |
namespace Drupal\node\Tests; | |
/** |
$> drush use @existing-d7-site | |
$> drush dl composer_generate | |
$> mkdir /tmp/new-site | |
$> drush composer-generate > /tmp/new-site/composer.json | |
$> cd /tmp/new-site | |
$> composer install | |
$> composer require drupal/views |
<?php | |
/** | |
* Provide actual overridden view config. | |
*/ | |
protected function getOverriddenView() { | |
$view = array( | |
'display' => array( | |
'default' => array( | |
'display_options' => array( |
<?php | |
/** | |
* @Given /^I am logged in as a user in the "(?P<group>[^"]*)" group$/ | |
*/ | |
public function iAmLoggedInAsAUserInTheGroup($group) { | |
// Create user. | |
$account = (object) array( | |
'pass' => $this->getDrupal()->random->name(), | |
'name' => $this->getDrupal()->random->name(), | |
); |
<?php | |
/** | |
* @AfterStep | |
*/ | |
public function takeScreenShotAfterFailedStep(AfterStepScope $scope) { | |
if (99 === $scope->getTestResult()->getResultCode()) { | |
$driver = $this->getSession()->getDriver(); | |
if (!($driver instanceof Selenium2Driver)) { | |
return; |
I hereby claim:
To claim this, I am signing this object:
> drush php | |
Psy Shell v0.8.2 (PHP 7.0.13 — cli) by Justin Hileman | |
>>> $one = Drupal\views\Render\ViewsRenderPipelineMarkup::create(1); | |
=> Drupal\views\Render\ViewsRenderPipelineMarkup {#8821} | |
>>> $two = Drupal\Core\Render\Markup::create(2); | |
=> Drupal\Core\Render\Markup {#8818} | |
>>> $two > $one; | |
=> false | |
>>> $two == $one; | |
=> false |
<?php | |
/** | |
* @file | |
* Install file for content_moderation. | |
*/ | |
use Drupal\content_moderation\Entity\ContentModerationState; | |
use Drupal\Core\Field\BaseFieldDefinition; | |
use Drupal\Core\Database\Database; |