/** * Test importing address formats using service. */ function testAddressFormatImport() { $externalRepository = new AddressFormatRepository(); $externalCount = count($externalRepository->getAll()); $count = \Drupal::entityQuery('address_format')->count()->execute(); $this->assertEqual($externalCount, $count, 'All address formats imported at installation.'); }