Skip to content

Commit

Permalink
Fix CS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerom committed Jan 9, 2015
1 parent ba417a6 commit 85e8bfc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
9 changes: 4 additions & 5 deletions Repository/Tests/BaseContentServiceTest.php
Expand Up @@ -191,7 +191,7 @@ protected function createUpdatedDraftVersion2()
*
* @return array \eZ\Publish\API\Repository\Values\Content\Content, id
*/
protected function createUpdatedDraftVersion2_NotAdmin()
protected function createUpdatedDraftVersion2NotAdmin()
{
$repository = $this->getRepository();

Expand All @@ -206,16 +206,15 @@ protected function createUpdatedDraftVersion2_NotAdmin()

// Load the Admin Group
$userAdminGroup = $userService->loadUserGroup( '12' );

$userAdmin2 = $userService->createUser( $newUserCreateStruct, array ( $userAdminGroup ) );

$userAdmin2 = $userService->createUser( $newUserCreateStruct, array( $userAdminGroup ) );

/* BEGIN: Inline */
$draftVersion2 = $this->createContentDraftVersion2();

// Create an update struct and modify some fields
$contentUpdate = $contentService->newContentUpdateStruct();
$contentUpdate->initialLanguageCode = $mainLanguageCode;

$contentUpdate->creatorId = $this->generateId( 'user', $userAdmin2->id );
$contentUpdate->setField( 'name', 'An awesome forum²' );
$contentUpdate->setField( 'name', 'An awesome forum²³', 'eng-GB' );
Expand Down
4 changes: 2 additions & 2 deletions Repository/Tests/ContentServiceTest.php
Expand Up @@ -1309,10 +1309,10 @@ public function testUpdateContent()
* @group user
* @group field-type
*/
public function testUpdateContent_WithDifferentUser()
public function testUpdateContentWithDifferentUser()
{
/* BEGIN: Use Case */
$arrayWithDraftVersion2 = $this->createUpdatedDraftVersion2_NotAdmin();
$arrayWithDraftVersion2 = $this->createUpdatedDraftVersion2NotAdmin();
/* END: Use Case */

$this->assertInstanceOf(
Expand Down
Expand Up @@ -9,7 +9,6 @@

namespace eZ\Publish\API\Repository\Tests;


use eZ\Publish\API\Repository\Tests\SetupFactory\Legacy as LegacySetupFactory;

/**
Expand Down
1 change: 0 additions & 1 deletion Repository/Tests/SearchServiceFieldFiltersTest.php
Expand Up @@ -1370,7 +1370,6 @@ public function testFieldRangeQueryAlwaysAvailableEmpty( $type = null )
$this->assertEquals( 0, $searchResult->totalCount );
}


/**
* Test for the findContent() method.
*
Expand Down
5 changes: 2 additions & 3 deletions Repository/Tests/SearchServiceTest.php
Expand Up @@ -4249,16 +4249,15 @@ protected function assertQueryFixture( Query $query, $fixture, $closure = null,
{
foreach ( array( $fixture, $result ) as $result )
{
$property = new \ReflectionProperty(get_class($result), 'maxScore');
$property = new \ReflectionProperty( get_class( $result ), 'maxScore' );
$property->setAccessible( true );
$property->setValue( $result, 0.0 );

foreach ( $result->searchHits as $hit )
{
$property = new \ReflectionProperty(get_class($hit), 'score');
$property = new \ReflectionProperty( get_class( $hit ), 'score' );
$property->setAccessible( true );
$property->setValue( $hit, 0.0 );

}
}
}
Expand Down

0 comments on commit 85e8bfc

Please sign in to comment.