Skip to content

Instantly share code, notes, and snippets.

View neclimdul's full-sized avatar

James Gilliland neclimdul

View GitHub Profile
@neclimdul
neclimdul / core_tests.sh
Created May 11, 2015 20:40
core_tests.sh
#!/bin/bash
WEB=`pgrep nginx | wc -l`
if [ $WEB -eq 0 ]; then
WEB=`pgrep apache | wc -l`
if [ $WEB -eq 0 ]; then
echo "start your damn web server"
exit
fi
fi
diff --git a/core/modules/migrate_drupal/src/Tests/Table/d6/Access.php b/core/modules/migrate_drupal/src/Tests/Table/d6/Access.php
index 5339530..d92a2f5 100644
--- a/core/modules/migrate_drupal/src/Tests/Table/d6/Access.php
+++ b/core/modules/migrate_drupal/src/Tests/Table/d6/Access.php
@@ -3,11 +3,6 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\Table\d6\Access.
- *
- * THIS IS A GENERATED FILE. DO NOT EDIT.
@neclimdul
neclimdul / server_admin.sh
Created July 4, 2015 19:46
Minecraft server admin script.
#!/bin/bash
## Name of the script used to start the server.
# This will be written by this script in the directory you run it in.
# Avoid ServerStart.sh because this will collide with FTB Server scripts.
CONTROL_SCRIPT="ServerAdminStart.sh"
## Memory options
# -Xms controls initial memory.
# -Xmx controls maximum memory threshold.
<?php
$path = 'd';
echo "RouteProvider::getRoutesByPath():\n";
bench('d');
bench('d/d');
bench('d/d/d');
bench('d//d///d');
bench('/d/d/d/d////d/d/d/d/d/d/d/d/d/d/d/d/d/d/d/d/d/d');
There was 1 failure:
1) Drupal\Tests\Core\Entity\EntityUnitTest::testCacheTags
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- 0 => 'additional_cache_tag'
- 1 => 'aYjF6vMj:1'
<?php
function method($cache) {
$prepared = clone $cache;
$prepared->data = unserialize($prepared->data);
return $prepared;
}
$cache = new stdClass();
$cache->data = serialize(['foo' => 'bar']);
drupalci config:show current
---------------- Start config set: CURRENT DCI ENVIRONMENT ----------------
Defined in ~/.drupalci/config:
DCI_TESTGROUPS: Ajax
DCI_UseLocalCodebase: /var/www/localhost/htdocs/d8/
DCI_PHPVersion: 5.6
GET http://ec2-54-191-113-78.us-west-2.compute.amazonaws.com/checkout/user/2 returned 0 (0 bytes). Browser PageCacheTagsTestBase.php 51 Drupal\system\Tests\Cache\PageCacheTagsTestBase->verifyPageCache()
Page cache MISS for http://ec2-54-191-113-78.us-west-2.compute.amazonaws.com/checkout/user/2. Other PageCacheTagsTestBase.php 53 Drupal\system\Tests\Cache\PageCacheTagsTestBase->verifyPageCache()
Page cache HIT for http://ec2-54-191-113-78.us-west-2.compute.amazonaws.com/checkout/user/2.
[18:35:40] Log initialized (/var/lib/drupaltestbot/sites/default/files/review.test_1145698.pifr_simpletest.2504513-24.patch.1441848940.log)
[18:35:40] Review timestamp: (Wed, 09/09/2015 - 18:35)
[18:35:40] Review host: (ec2-54-191-113-78)
[18:35:40] Operations:Array
(
<?php
class SecuredRedirectResponseTest extends UnitTestCase {
public function testHeaderBag() {
$headers = ['test'];
$bag1 = new ResponseHeaderBag($headers);
$bag2 = new ResponseHeaderBag($bag1->allPreserveCase());
$this->assertEquals($bag1->allPreserveCase(), $bag2->allPreserveCase());
}
<?php
class myTest extends BrowserTestBase {
/**
* @{@inheritdoc}
*/
protected function tearDown() {
if (function_exists('_drupal_shutdown_function')) {
_drupal_shutdown_function();