Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CatalogAPIMapperTest extends GenericDatabaseTestCase {
- public function getDataSet() {
- return $this->createMySQLXMLDataSet("test/Seeds/seed.xml");
- }
- public function testGetByLocalIdCreatesAppropriateDataForFactory() {
- $catalogMapper = new CatalogMySQLMapper($this->getPdo(), $this->getMockMySQLCatalogFactory());
- }
- private function getMockMySQLCatalogFactory() {
- $mysqlCatalogFactory = $this->getMockBuilder(MySQLCatalogFactory::class)
- ->disableOriginalConstructor()
- ->getMock();
- $mysqlCatalogFactory->method('create')
- ->will($this->returnArgument(0));
- return $mysqlCatalogFactory;
- }
- }
Add Comment
Please, Sign In to add comment