Skip to content

Conversation

@Kleduy
Copy link

@Kleduy Kleduy commented May 16, 2022

setup Test

@midahp
Copy link

midahp commented May 17, 2022

This PR should have the FRAMEWORK_6_0 branch as a target. Not master

@ralflang
Copy link

ralflang commented May 17, 2022 via email

@midahp
Copy link

midahp commented May 18, 2022

Looking at some repos, it seems like we still have quite a few repos that have the master branch. All of which have the FRAMEWORK_6_0 as default though (including this one).

@Kleduy Kleduy changed the base branch from master to FRAMEWORK_6_0 May 19, 2022 14:00
Copy link

@ralflang ralflang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please run this through php-cs-fixer with PSR 12 rules and fix the mentioned issues (or what's left of them after CS fixing)


}

public function testsetFactory(){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be testSetFactory, not testsetFactory

public function testsetFactory(){
$this->base=$this->createMock(BaseMapper::class);

$test=$this->getMockBuilder('Factory')->getMock();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spacing $test = $this


//@return Factory The Factory

public function test__construct(){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to testConstructor, if needed at all

$adapter=$this->createMock(Horde_Db_Adapter::class);

$q=new Factory($adapter);
$c=$q->__construct($adapter);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks wrong. You don't call the constructor on an existing object.


}
*/
public function testcreateClassDoesNotExist(){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testCreate...


}

public function testcreateClassWithoutAdapter(){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testCreate...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants