Guest User

Untitled

a guest
Mar 18th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. class CatalogAPIMapperTest extends GenericDatabaseTestCase {
  2. public function getDataSet() {
  3. return $this->createMySQLXMLDataSet("test/Seeds/seed.xml");
  4. }
  5. public function testGetByLocalIdCreatesAppropriateDataForFactory() {
  6. $catalogMapper = new CatalogMySQLMapper($this->getPdo(), $this->getMockMySQLCatalogFactory());
  7.  
  8. }
  9. private function getMockMySQLCatalogFactory() {
  10. $mysqlCatalogFactory = $this->getMockBuilder(MySQLCatalogFactory::class)
  11. ->disableOriginalConstructor()
  12. ->getMock();
  13. $mysqlCatalogFactory->method('create')
  14. ->will($this->returnArgument(0));
  15. return $mysqlCatalogFactory;
  16. }
  17. }
Add Comment
Please, Sign In to add comment