Skip to content
This repository was archived by the owner on Mar 16, 2021. It is now read-only.

Commit fd33546

Browse files
committed
Merge pull request #12 from plopesc/7.x-1.x
Fix typos
2 parents b08319a + f5227b5 commit fd33546

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

modules/typed_entity_example/lib/Drupal/typed_entity_example/Tests/TypedEntityExampleUnitTestCase.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ public function testFactory() {
9393
}
9494

9595
// Test the fallback to TypedEntity.
96-
$wrapper_service->setFixturePath(__DIR__ . '/fixtures/page.inc');
96+
$wrapper_service->setFixturePath(__DIR__ . '/fixtures/user.inc');
9797
// Get the mock entity to be loaded.
98-
$entity = $wrapper_service->wrap('node', NULL)->value();
98+
$entity = $wrapper_service->wrap('user', NULL)->value();
9999
$typed_user = TypedEntityManager::create('user', $entity);
100100
$reflection_user = new \ReflectionClass($typed_user);
101101
if ($reflection_user->name == 'Drupal\typed_entity\TypedEntity\TypedEntity') {

modules/typed_entity_example/src/TypedEntity/Node/Article.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function getImage() {
3232
}
3333
$item = reset($items);
3434
$file_id = $item['fid'];
35-
return TypedEntityManager::create('user', entity_load_single('file', $file_id));
35+
return TypedEntityManager::create('file', entity_load_single('file', $file_id));
3636
}
3737

3838
/**

modules/typed_entity_example/src/TypedEntity/Node/ArticleInterface.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
interface ArticleInterface extends TypedNodeInterface {
1414

1515
/**
16-
* Gets the author of the node.
16+
* Gets the image of the node.
1717
*
1818
* @return TypedEntityInterface
19-
* The fully loaded user object.
19+
* The fully loaded image object.
2020
*/
2121
public function getImage();
2222

0 commit comments

Comments
 (0)