Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Static Public Member Functions | Protected Attributes
InjectableTests Class Reference
Inheritance diagram for InjectableTests:

Public Member Functions

 run (\PHPUnit\Framework\TestResult $result=null)
 
 prepareSuite ()
 
 init ()
 

Static Public Member Functions

static suite ()
 

Protected Attributes

 $objectManager
 
 $suite
 
 $result
 

Detailed Description

Class InjectableTests

Definition at line 16 of file InjectableTests.php.

Member Function Documentation

◆ init()

init ( )

Call the initialization of ObjectManager

Definition at line 73 of file InjectableTests.php.

74  {
75  $this->initObjectManager();
76  }

◆ prepareSuite()

prepareSuite ( )

Prepare test suite and apply application state

Returns
\Magento\Mtf\TestSuite\AppState

Definition at line 64 of file InjectableTests.php.

65  {
66  $this->init();
67  return $this->objectManager->create(\Magento\Mtf\TestSuite\AppState::class);
68  }

◆ run()

run ( \PHPUnit\Framework\TestResult  $result = null)

Run collected tests

Parameters
\PHPUnit\Framework\TestResult$result
Returns
\PHPUnit\Framework\TestResult|void

@SuppressWarnings(PHPMD.UnusedFormalParameter)

Definition at line 41 of file InjectableTests.php.

42  {
43  if ($result === null) {
44  $this->result = $this->createResult();
45  }
46  }

◆ suite()

static suite ( )
static

Prepare test suite

Returns
mixed

Definition at line 53 of file InjectableTests.php.

54  {
55  $suite = new self();
56  return $suite->prepareSuite();
57  }

Field Documentation

◆ $objectManager

$objectManager
protected

Definition at line 21 of file InjectableTests.php.

◆ $result

$result
protected

Definition at line 31 of file InjectableTests.php.

◆ $suite

$suite
protected

Definition at line 26 of file InjectableTests.php.


The documentation for this class was generated from the following file: