updated contrib modules : translation_views, views_bulk_edit, views_bulk_operations, workflow, addtoany, redis, url_to_video_filter
This commit is contained in:
@@ -12,12 +12,9 @@ php:
|
||||
- 5.5
|
||||
- 5.6
|
||||
- 7
|
||||
- hhvm
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
allow_failures:
|
||||
- php: hhvm
|
||||
|
||||
env:
|
||||
global:
|
||||
@@ -63,7 +60,7 @@ env:
|
||||
- DRUPAL_TI_BEHAT_BROWSER="firefox"
|
||||
|
||||
# Use Drupal 8.3.x to run tests.
|
||||
- DRUPAL_TI_CORE_BRANCH="8.3.x"
|
||||
- DRUPAL_TI_CORE_BRANCH="8.5.x"
|
||||
|
||||
# PHPUnit specific commandline arguments.
|
||||
- DRUPAL_TI_PHPUNIT_ARGS="--verbose --debug"
|
||||
|
||||
@@ -5,8 +5,8 @@ type: module
|
||||
# core: 8.x
|
||||
configure: redis.admin_display
|
||||
|
||||
# Information added by Drupal.org packaging script on 2017-09-14
|
||||
version: '8.x-1.0-rc2'
|
||||
# Information added by Drupal.org packaging script on 2018-05-30
|
||||
version: '8.x-1.0'
|
||||
core: '8.x'
|
||||
project: 'redis'
|
||||
datestamp: 1505390051
|
||||
datestamp: 1527699489
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
namespace Drupal\redis\Cache;
|
||||
|
||||
use \DateInterval;
|
||||
use Drupal\Component\Assertion\Inspector;
|
||||
use Drupal\Component\Serialization\SerializationInterface;
|
||||
use Drupal\Core\Cache\Cache;
|
||||
use Drupal\Core\Cache\CacheBackendInterface;
|
||||
@@ -297,7 +298,7 @@ abstract class CacheBase implements CacheBackendInterface {
|
||||
// Always add a cache tag for the current bin, so that we can use that for
|
||||
// invalidateAll().
|
||||
$tags[] = $this->getTagForBin();
|
||||
assert('\Drupal\Component\Assertion\Inspector::assertAllStrings($tags)', 'Cache Tags must be strings.');
|
||||
assert(Inspector::assertAllStrings($tags), 'Cache Tags must be strings.');
|
||||
$hash = [
|
||||
'cid' => $cid,
|
||||
'created' => round(microtime(TRUE), 3),
|
||||
|
||||
@@ -84,8 +84,8 @@ class Predis extends LockBackendAbstract {
|
||||
// succeed if the key does not exist yet.
|
||||
$result = $this->client->set($key, $id, 'nx', 'px', (int) ($timeout * 1000));
|
||||
|
||||
// If the result is FALSE, we failed to acquire the lock.
|
||||
if (FALSE === $result) {
|
||||
// If the result is FALSE or NULL, we failed to acquire the lock.
|
||||
if (FALSE === $result || NULL === $result) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Drupal\redis\PersistentLock;
|
||||
|
||||
use Drupal\redis\ClientFactory;
|
||||
|
||||
/**
|
||||
* Predis persistent lock backend
|
||||
*/
|
||||
class Predis extends \Drupal\redis\Lock\Predis {
|
||||
|
||||
/**
|
||||
* Creates a Predis persistent lock backend.
|
||||
*/
|
||||
public function __construct(ClientFactory $factory) {
|
||||
// Do not call the parent constructor to avoid registering a shutdown
|
||||
// function that releases all the locks at the end of a request.
|
||||
$this->client = $factory->getClient();
|
||||
// Set the lockId to a fixed string to make the lock ID the same across
|
||||
// multiple requests. The lock ID is used as a page token to relate all the
|
||||
// locks set during a request to each other.
|
||||
// @see \Drupal\Core\Lock\LockBackendInterface::getLockId()
|
||||
$this->lockId = 'persistent';
|
||||
}
|
||||
|
||||
}
|
||||
+1
-1
@@ -41,7 +41,7 @@ class RedisLockFunctionalTest extends LockFunctionalTest {
|
||||
file_put_contents($filename, $contents);
|
||||
$settings = Settings::getAll();
|
||||
$settings['container_yamls'][] = 'modules/redis/example.services.yml';
|
||||
$settings['redis.connection']['interface'] = '\'' . $redis_interface . '\'';
|
||||
$settings['redis.connection']['interface'] = $redis_interface;
|
||||
new Settings($settings);
|
||||
OpCodeCache::invalidate(DRUPAL_ROOT . '/' . $filename);
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
namespace Drupal\Tests\redis\Functional;
|
||||
|
||||
use Drupal\Component\Utility\OpCodeCache;
|
||||
use Drupal\Component\Utility\Unicode;
|
||||
use Drupal\Core\Database\Database;
|
||||
use Drupal\Core\Site\Settings;
|
||||
use Drupal\field_ui\Tests\FieldUiTestTrait;
|
||||
@@ -142,10 +141,10 @@ class WebTest extends BrowserTestBase {
|
||||
// Create a node type with a field.
|
||||
$edit = [
|
||||
'name' => $this->randomString(),
|
||||
'type' => $node_type = Unicode::strtolower($this->randomMachineName()),
|
||||
'type' => $node_type = mb_strtolower($this->randomMachineName()),
|
||||
];
|
||||
$this->drupalPostForm('admin/structure/types/add', $edit, t('Save and manage fields'));
|
||||
$field_name = Unicode::strtolower($this->randomMachineName());
|
||||
$field_name = mb_strtolower($this->randomMachineName());
|
||||
$this->fieldUIAddNewField('admin/structure/types/manage/' . $node_type, $field_name, NULL, 'text');
|
||||
|
||||
// Create a node, check display, edit, verify that it has been updated.
|
||||
@@ -154,7 +153,7 @@ class WebTest extends BrowserTestBase {
|
||||
'body[0][value]' => $this->randomMachineName(),
|
||||
'field_' . $field_name . '[0][value]' => $this->randomMachineName(),
|
||||
];
|
||||
$this->drupalPostForm('node/add/' . $node_type, $edit, t('Save and publish'));
|
||||
$this->drupalPostForm('node/add/' . $node_type, $edit, t('Save'));
|
||||
|
||||
// Test the output as anonymous user.
|
||||
$this->drupalLogout();
|
||||
@@ -169,7 +168,7 @@ class WebTest extends BrowserTestBase {
|
||||
$update = [
|
||||
'title[0][value]' => $this->randomMachineName(),
|
||||
];
|
||||
$this->drupalPostForm(NULL, $update, t('Save and keep published'));
|
||||
$this->drupalPostForm(NULL, $update, t('Save'));
|
||||
$this->assertSession()->responseContains($update['title[0][value]']);
|
||||
$this->drupalGet('node');
|
||||
$this->assertSession()->responseContains($update['title[0][value]']);
|
||||
|
||||
@@ -39,7 +39,7 @@ class RedisQueueTest extends CoreQueueTest {
|
||||
$queue2 = new $class_name($this->randomMachineName(), $settings, $client_factory->getClient());
|
||||
$queue2->createQueue();
|
||||
|
||||
$this->queueTest($queue1, $queue2);
|
||||
$this->runQueueTest($queue1, $queue2);
|
||||
$queue1->deleteQueue();
|
||||
$queue2->deleteQueue();
|
||||
|
||||
@@ -53,7 +53,7 @@ class RedisQueueTest extends CoreQueueTest {
|
||||
$queue2 = new $class_name($this->randomMachineName(), $settings, $client_factory->getClient());
|
||||
$queue2->createQueue();
|
||||
|
||||
$this->queueTest($queue1, $queue2);
|
||||
$this->runQueueTest($queue1, $queue2);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -74,7 +74,7 @@ class RedisQueueTest extends CoreQueueTest {
|
||||
$queue2 = new $class_name($this->randomMachineName(), $settings, $client_factory->getClient());
|
||||
$queue2->createQueue();
|
||||
|
||||
$this->queueTest($queue1, $queue2);
|
||||
$this->runQueueTest($queue1, $queue2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user