Skip to content

Commit ef4567b

Browse files
committed
Fix fixtureloading state
1 parent 31b3a23 commit ef4567b

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

features/all/phpcr_node_move.feature

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@annoying
21
Feature: Move a node in the current session
32
In order to move a single node in the current workspace
43
As a user logged into the shell

features/all/phpcr_node_property_remove.feature

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@annoying
21
Feature: Remove a single property at a specified path
32
In order to remove a single property at a specified path
43
As a user logged into the shell

features/all/phpcr_node_rename.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@annoying
12
Feature: Rename a node
23
In order to rename a node
34
As a user that is logged into the shell

features/all/phpcr_node_reorder_before.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@annoying
12
Feature: Reorder a node
23
In order to change the order of a node
34
As a user that is logged into the shell

spec/PHPCR/Shell/Event/CommandExceptionEventSpec.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use PhpSpec\ObjectBehavior;
66
use Prophecy\Argument;
77
use Symfony\Component\Console\Output\OutputInterface;
8-
use Symfony\Component\Console\Input\InputInterface;
8+
use PHPCR\Shell\Console\Application\ShellApplication;
99

1010
class CommandExceptionEventSpec extends ObjectBehavior
1111
{
@@ -16,10 +16,10 @@ function it_is_initializable()
1616

1717
function let(
1818
\Exception $exception,
19-
InputInterface $input,
19+
ShellApplication $application,
2020
OutputInterface $output
2121
) {
22-
$this->beConstructedWith($exception, $input, $output);
22+
$this->beConstructedWith($exception, $application, $output);
2323
}
2424

2525
function it_should_provide_access_to_event_parameters(

src/PHPCR/Shell/Test/ContextBase.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public function beforeScenario()
5353
chdir($this->workingDir);
5454
$this->filesystem = new Filesystem();
5555
$this->applicationTester = $this->createTester();
56-
$this->getSession()->refresh(true);
5756
}
5857

5958
/**
@@ -216,6 +215,10 @@ public function theFixturesAreLoaded($arg1)
216215
$session = $this->getSession(null, true);
217216
NodeHelper::purgeWorkspace($session);
218217
$session->save();
218+
219+
// shouldn't have to do this, but this seems to be a bug in jackalope
220+
$session->refresh(false);
221+
219222
$session->importXml('/', $fixtureFile, 0);
220223
$session->save();
221224
}

0 commit comments

Comments
 (0)