Skip to content

BaseMapperTest#5

Open
Kleduy wants to merge 2 commits intomaintaina-com:FRAMEWORK_6_0from
Kleduy:FRAMEWORK_6_0
Open

BaseMapperTest#5
Kleduy wants to merge 2 commits intomaintaina-com:FRAMEWORK_6_0from
Kleduy:FRAMEWORK_6_0

Conversation

@Kleduy
Copy link
Copy Markdown

@Kleduy Kleduy commented May 16, 2022

setup Test

@midahp
Copy link
Copy Markdown

midahp commented May 17, 2022

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

@ralflang
Copy link
Copy Markdown

ralflang commented May 17, 2022 via email

@midahp
Copy link
Copy Markdown

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
Copy Markdown

@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(){
Copy link
Copy Markdown

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();
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Spacing $test = $this

Comment thread test/Unit/FactoryTest.php

//@return Factory The Factory

public function test__construct(){
Copy link
Copy Markdown

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

Comment thread test/Unit/FactoryTest.php
$adapter=$this->createMock(Horde_Db_Adapter::class);

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

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.

Comment thread test/Unit/FactoryTest.php

}
*/
public function testcreateClassDoesNotExist(){
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

testCreate...

Comment thread test/Unit/FactoryTest.php

}

public function testcreateClassWithoutAdapter(){
Copy link
Copy Markdown

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