| @@ 115-135 (lines=21) @@ | ||
| 112 | /** |
|
| 113 | * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Handler::__construct |
|
| 114 | */ |
|
| 115 | public function testCtor() |
|
| 116 | { |
|
| 117 | $handler = $this->getContentHandler(); |
|
| 118 | ||
| 119 | $this->assertAttributeSame( |
|
| 120 | $this->getGatewayMock(), |
|
| 121 | 'contentGateway', |
|
| 122 | $handler |
|
| 123 | ); |
|
| 124 | $this->assertAttributeSame( |
|
| 125 | $this->getMapperMock(), |
|
| 126 | 'mapper', |
|
| 127 | $handler |
|
| 128 | ); |
|
| 129 | $this->assertAttributeSame( |
|
| 130 | $this->getFieldHandlerMock(), |
|
| 131 | 'fieldHandler', |
|
| 132 | $handler |
|
| 133 | ); |
|
| 134 | // @todo Assert missing properties |
|
| 135 | } |
|
| 136 | ||
| 137 | /** |
|
| 138 | * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Handler::create |
|
| @@ 55-74 (lines=20) @@ | ||
| 52 | /** |
|
| 53 | * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Type\Handler::__construct |
|
| 54 | */ |
|
| 55 | public function testCtor() |
|
| 56 | { |
|
| 57 | $handler = $this->getHandler(); |
|
| 58 | ||
| 59 | $this->assertAttributeSame( |
|
| 60 | $this->getGatewayMock(), |
|
| 61 | 'contentTypeGateway', |
|
| 62 | $handler |
|
| 63 | ); |
|
| 64 | $this->assertAttributeSame( |
|
| 65 | $this->getMapperMock(), |
|
| 66 | 'mapper', |
|
| 67 | $handler |
|
| 68 | ); |
|
| 69 | $this->assertAttributeSame( |
|
| 70 | $this->getUpdateHandlerMock(), |
|
| 71 | 'updateHandler', |
|
| 72 | $handler |
|
| 73 | ); |
|
| 74 | } |
|
| 75 | ||
| 76 | /** |
|
| 77 | * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Type\Handler::createGroup |
|