Lines Matching refs:author
56 $author = new Author('John', 5);
57 $em->persist($author);
69 self::assertEquals($author, $authorFetched);
76 $author = new Author('John', 5);
77 $em->persist($author);
88 self::assertSame($author, $authorFetched);
99 … $author = $constructor->construct($this->visitor, $class, ['id' => 5], $type, $this->context);
100 self::assertNull($author);
105 $author = new Author('John');
108 $fallback->expects($this->once())->method('construct')->willReturn($author);
115 self::assertSame($author, $authorFetched);
120 $author = new DoctrinePHPCRAuthor('foo');
123 $fallback->expects($this->once())->method('construct')->willReturn($author);
130 self::assertSame($author, $authorFetched);
137 $author = new Author('John', 5);
138 $em->persist($author);
148 self::assertSame($author, $authorFetched);
181 $author = new Author('John');
184 $fallback->expects($this->once())->method('construct')->willReturn($author);
191 self::assertSame($author, $authorFetched);