Skip to content

Commit

Permalink
Merge pull request #26 from dawehner/drupal-6
Browse files Browse the repository at this point in the history
Initial version of the Drupal 6 support for extension ~3.0

Signed-off-by: Jonathan Hedstrom <[email protected]>
  • Loading branch information
jhedstrom committed Mar 25, 2015
1 parent 38d7c91 commit 15d72b1
Show file tree
Hide file tree
Showing 4 changed files with 520 additions and 0 deletions.
26 changes: 26 additions & 0 deletions spec/Drupal/Driver/Cores/Drupal6Spec.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

namespace spec\Drupal\Driver\Cores;

use Drupal\Component\Utility\Random;

use PhpSpec\ObjectBehavior;
use Prophecy\Argument;

class Drupal6Spec extends ObjectBehavior
{
function let(Random $random)
{
$this->beConstructedWith('path', 'http://www.example.com', $random);
}

function it_is_initializable()
{
$this->shouldHaveType('Drupal\Driver\Cores\Drupal6');
}

function it_should_return_a_random_generator()
{
$this->getRandom()->shouldBeAnInstanceOf('Drupal\Component\Utility\Random');
}
}
2 changes: 2 additions & 0 deletions src/Drupal/Driver/Cores/CoreInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ public function userAddRole(\stdClass $user, $role_name);
*/
public function validateDrupalSite();

public function processBatch();

/**
* Create a taxonomy term.
*/
Expand Down
Loading

0 comments on commit 15d72b1

Please sign in to comment.