# packeta/2.1/tests/Core/Entity/CarrierTest.php

Packeta, version 2.1. 33 lines.

- Page: https://pluginprobe.com/plugins/packeta/2.1/code/tests/Core/Entity/CarrierTest.php
- Raw: https://pluginprobe.com/plugins/packeta/2.1/raw/tests/Core/Entity/CarrierTest.php
- Modified: 2025-08-28T06:15:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/packeta/2.1/code/tests/Core/Entity/CarrierTest.php#L10-L20`.

```php
<?php

declare( strict_types=1 );

namespace Tests\Core\Entity;

use PHPUnit\Framework\TestCase;
use Tests\Core\DummyFactory;

class CarrierTest extends TestCase {
	public function testGetters(): void {
		$carrier            = DummyFactory::createCarrierCzechPp();
		$carDeliveryCarrier = DummyFactory::createCarDeliveryCarrier();
		self::assertIsArray( $carrier->__toArray() );
		self::assertIsString( $carrier->getName() );
		self::assertIsBool( $carrier->hasPickupPoints() );
		self::assertIsBool( $carrier->hasDirectLabel() );
		self::assertIsBool( $carrier->requiresSeparateHouseNumber() );
		self::assertIsBool( $carrier->requiresCustomsDeclarations() );
		self::assertIsBool( $carrier->requiresEmail() );
		self::assertIsBool( $carrier->requiresPhone() );
		self::assertIsBool( $carrier->requiresSize() );
		self::assertIsBool( $carrier->supportsCod() );
		self::assertIsString( $carrier->getCountry() );
		self::assertIsString( $carrier->getCurrency() );
		self::assertIsFloat( $carrier->getMaxWeight() );
		self::assertIsBool( $carrier->isAvailable() );
		self::assertIsBool( $carrier->isDeleted() );
		self::assertIsBool( $carrier->supportsAgeVerification() );
		self::assertIsBool( $carDeliveryCarrier->isCarDelivery() );
	}
}

```
