/** * @covers \Magento\Braintree\Model\Adminhtml\System\Config\Country::toOptionArray */ public function testToOptionArray() { $countries = [['value' => 'US', 'label' => 'United States'], ['value' => 'UK', 'label' => 'United Kingdom']]; $this->initCountryCollectionMock($countries); $header = ['value' => '', 'label' => new Phrase('--Please Select--')]; array_unshift($countries, $header); $this->assertEquals($countries, $this->model->toOptionArray()); }