In order to locally test prestashop with phpunit, change line 313 in classes/shop/shop.php from $id_shop = ""; to $id_shop = 1;