Skip to content

Commit

Permalink
Merge pull request #48 from magento-firedrakes/MAGETWO-32081-2
Browse files Browse the repository at this point in the history
[Firedrakes] Magento vendor name is used as a framework namespace
  • Loading branch information
Michael Logvin committed Jan 22, 2015
2 parents 2410622 + 4445ff2 commit 3dd6f78
Show file tree
Hide file tree
Showing 1,144 changed files with 2,102 additions and 2,085 deletions.
2 changes: 1 addition & 1 deletion dev/tests/functional/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
!/config/isolation.yml.dist
!/config/server.yml.dist
phpunit.xml
/lib/Mtf/Util/Generate/testcase.xml
/lib/Magento/Mtf/Util/Generate/testcase.xml
5 changes: 2 additions & 3 deletions dev/tests/functional/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"require": {
"magento/mtf": "1.0.0-rc13",
"magento/mtf": "1.0.0-rc14",
"php": ">=5.4.0",
"phpunit/phpunit": "4.1.0",
"phpunit/phpunit-selenium": ">=1.2",
Expand All @@ -11,8 +11,7 @@
},
"autoload": {
"psr-4": {
"Mtf\\": ["lib/Mtf/", "generated/Mtf/", "testsuites/Mtf/"],
"Magento\\": ["generated/Magento/", "tests/app/Magento/"],
"Magento\\": ["lib/Magento/", "testsuites/Magento", "generated/Magento/", "tests/app/Magento/"],
"Test\\": "generated/Test/"
}
}
Expand Down
6 changes: 4 additions & 2 deletions dev/tests/functional/composer.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
"phpunit/phpunit-selenium": ">=1.2",
"netwing/selenium-server-standalone": ">=2.35"
},
"suggest": {
"facebook/webdriver": "dev-master"
},
"autoload": {
"psr-4": {
"Mtf\\": ["lib/Mtf/", "generated/Mtf/", "testsuites/Mtf/"],
"Magento\\": ["generated/Magento/", "tests/app/Magento/"],
"Magento\\": ["lib/Magento/", "testsuites/Magento", "generated/Magento/", "tests/app/Magento/"],
"Test\\": "generated/Test/"
}
}
Expand Down
4 changes: 2 additions & 2 deletions dev/tests/functional/etc/global/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd">
<preference for="Mtf\Util\Generate\Fixture\FieldsProviderInterface" type="Mtf\Util\Generate\Fixture\FieldsProvider" />
<preference for="Mtf\Util\Generate\Repository\CollectionProviderInterface" type="Mtf\Util\Generate\Repository\CollectionProvider" />
<preference for="Magento\Mtf\Util\Generate\Fixture\FieldsProviderInterface" type="Magento\Mtf\Util\Generate\Fixture\FieldsProvider" />
<preference for="Magento\Mtf\Util\Generate\Repository\CollectionProviderInterface" type="Magento\Mtf\Util\Generate\Repository\CollectionProvider" />
</config>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* See COPYING.txt for license details.
*/

namespace Mtf\App\State;
namespace Magento\Mtf\App\State;

use Magento\Framework\App\DeploymentConfig\DbConfig;
use Magento\Framework\App\Filesystem\DirectoryList;
Expand Down Expand Up @@ -39,7 +39,8 @@ public function apply()
*/
public function clearInstance()
{
$dirList = \Mtf\ObjectManagerFactory::getObjectManager()->get('Magento\Framework\Filesystem\DirectoryList');
$dirList = \Magento\Mtf\ObjectManagerFactory::getObjectManager()
->get('Magento\Framework\Filesystem\DirectoryList');
$deploymentConfig = new \Magento\Framework\App\DeploymentConfig(
new \Magento\Framework\App\DeploymentConfig\Reader($dirList),
[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
* See COPYING.txt for license details.
*/

namespace Mtf\App\State;
namespace Magento\Mtf\App\State;

use Mtf\ObjectManager;
use Mtf\Fixture\FixtureFactory;
use Magento\Mtf\ObjectManager;
use Magento\Mtf\Fixture\FixtureFactory;
use Magento\Core\Test\Fixture\ConfigData;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
* See COPYING.txt for license details.
*/

namespace Mtf\Client\Element;
namespace Magento\Mtf\Client\Element;

use Mtf\ObjectManager;
use Mtf\Client\Locator;
use Mtf\Client\ElementInterface;
use Magento\Mtf\ObjectManager;
use Magento\Mtf\Client\Locator;
use Magento\Mtf\Client\ElementInterface;

/**
* Class ConditionsElement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See COPYING.txt for license details.
*/

namespace Mtf\Client\Element;
namespace Magento\Mtf\Client\Element;

use Mtf\Client\Locator;
use Magento\Mtf\Client\Locator;

/**
* General class for datepicker elements.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
* See COPYING.txt for license details.
*/

namespace Mtf\Client\Element;
namespace Magento\Mtf\Client\Element;

use Mtf\Client\Locator;
use Mtf\Client\ElementInterface;
use Magento\Mtf\Client\Locator;
use Magento\Mtf\Client\ElementInterface;

/**
* Typified element class for global search element.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See COPYING.txt for license details.
*/

namespace Mtf\Client\Element;
namespace Magento\Mtf\Client\Element;

use Mtf\Client\ElementInterface;
use Magento\Mtf\Client\ElementInterface;

/**
* Class JquerytreeElement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See COPYING.txt for license details.
*/

namespace Mtf\Client\Element;
namespace Magento\Mtf\Client\Element;

use Mtf\Client\Locator;
use Magento\Mtf\Client\Locator;

/**
* Class LiselectstoreElement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
* See COPYING.txt for license details.
*/

namespace Mtf\Client\Element;
namespace Magento\Mtf\Client\Element;

use Mtf\Client\Locator;
use Mtf\Client\ElementInterface;
use Magento\Mtf\Client\Locator;
use Magento\Mtf\Client\ElementInterface;

/**
* Class MultiselectgrouplistElement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See COPYING.txt for license details.
*/

namespace Mtf\Client\Element;
namespace Magento\Mtf\Client\Element;

use Mtf\Client\Locator;
use Magento\Mtf\Client\Locator;

/**
* Typified element class for Multiple Select List elements
Expand Down Expand Up @@ -39,7 +39,7 @@ public function setValue($values)
$values = is_array($values) ? $values : [$values];

foreach ($options as $option) {
/** @var \Mtf\Client\ElementInterface $option */
/** @var \Magento\Mtf\Client\ElementInterface $option */
$optionText = $option->getText();
$isChecked = $option->find($this->optionCheckedElement, Locator::SELECTOR_XPATH)->isVisible();
$inArray = in_array($optionText, $values);
Expand All @@ -60,7 +60,7 @@ public function getValue()
$options = $this->getOptions();

foreach ($options as $option) {
/** @var \Mtf\Client\ElementInterface $option */
/** @var \Magento\Mtf\Client\ElementInterface $option */
$checkedOption = $option->find($this->optionCheckedElement, Locator::SELECTOR_XPATH);
if ($checkedOption->isVisible()) {
$checkedOptions[] = $checkedOption->getText();
Expand Down Expand Up @@ -101,7 +101,7 @@ public function getAllValues()
$options = $this->getOptions();

foreach ($options as $option) {
/** @var \Mtf\Client\ElementInterface $option */
/** @var \Magento\Mtf\Client\ElementInterface $option */
$optionsValue[] = $option->getText();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See COPYING.txt for license details.
*/

namespace Mtf\Client\Element;
namespace Magento\Mtf\Client\Element;

use Mtf\Client\Locator;
use Magento\Mtf\Client\Locator;

/**
* Typified element class for multi suggest element.
Expand Down Expand Up @@ -73,7 +73,7 @@ public function getValue()
$values = [];

foreach ($choices as $choice) {
/** @var \Mtf\Client\ElementInterface $choice */
/** @var \Magento\Mtf\Client\ElementInterface $choice */
$values[] = $choice->getText();
}
return $values;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See COPYING.txt for license details.
*/

namespace Mtf\Client\Element;
namespace Magento\Mtf\Client\Element;

use Mtf\Client\Locator;
use Magento\Mtf\Client\Locator;

/**
* Class OptgroupselectElement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See COPYING.txt for license details.
*/

namespace Mtf\Client\Element;
namespace Magento\Mtf\Client\Element;

use Mtf\Client\Locator;
use Magento\Mtf\Client\Locator;

/**
* Typified element class for option group selectors.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See COPYING.txt for license details.
*/

namespace Mtf\Client\Element;
namespace Magento\Mtf\Client\Element;

use Mtf\Client\Locator;
use Magento\Mtf\Client\Locator;

/**
* Class SuggestElement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See COPYING.txt for license details.
*/

namespace Mtf\Client\Element;
namespace Magento\Mtf\Client\Element;

use Mtf\Client\ElementInterface;
use Magento\Mtf\Client\ElementInterface;

/**
* Class Tree
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* See COPYING.txt for license details.
*/

namespace Mtf\Client\Element;
namespace Magento\Mtf\Client\Element;

/**
* Class TreeElement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* See COPYING.txt for license details.
*/

namespace Mtf\Constraint;
namespace Magento\Mtf\Constraint;

/**
* Class AssertForm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See COPYING.txt for license details.
*/

namespace Mtf\EntryPoint;
namespace Magento\Mtf\EntryPoint;

use Mtf\ObjectManager;
use Magento\Mtf\ObjectManager;

/**
* Class EntryPoint
Expand Down Expand Up @@ -60,7 +60,7 @@ public function run($applicationName, array $arguments = [])
{
try {
if (!$this->_locator) {
$locatorFactory = new \Mtf\ObjectManagerFactory();
$locatorFactory = new \Magento\Mtf\ObjectManagerFactory();
$this->_locator = $locatorFactory->create();
}
return $this->_locator->create($applicationName, $arguments)->launch();
Expand Down
Loading

0 comments on commit 3dd6f78

Please sign in to comment.