50 : void
51 {
52 $ilBiblEntryFactory = $this->createMock(ilBiblEntryFactoryInterface::class);
53 $ilBiblFieldFactory = $this->createMock(ilBiblFieldFactoryInterface::class);
54 $ilBiblAttributeFactory = $this->createMock(ilBiblAttributeFactoryInterface::class);
56 $ilBiblEntryFactory,
57 $ilBiblFieldFactory,
58 $ilBiblAttributeFactory
59 );
61 $content = $reader->parseContent();
62
63 $this->assertIsArray($content);
64 $this->assertCount(2, $content);
65
66
67 $first_item = $content[0];
68
69 $this->assertEquals('BOOK', $first_item['TY']);
70 $this->assertEquals('Schrode, Paula, Simon, Udo Gerald', $first_item['A2']);
71 $this->assertEquals('Die Sunna leben', $first_item['T1']);
72 $this->assertEquals('zur Dynamik islamischer Religionspraxis in Deutschland', $first_item['T2']);
73 $this->assertEquals('Würzburg', $first_item['CY']);
74 $this->assertEquals('2012', $first_item['Y1']);
75 $this->assertEquals('Egon', $first_item['PB']);
76 $this->assertEquals('Deutschland, Islam, Religionsausübung, Kongress', $first_item['KW']);
77 $this->assertEquals('250 S.', $first_item['EP']);
78 $this->assertEquals('978-3-89913-722-4', $first_item['SN']);
79
80
81 $second_item = $content[1];
82
83 $this->assertEquals('JOURNAL', $second_item['TY']);
84 $this->assertEquals('Gienow-Hecht, Jessica C. E.', $second_item['A2']);
85 $this->assertEquals('Searching for a cultural diplomacy', $second_item['T1']);
86 $this->assertEquals('New York [u.a.]', $second_item['CY']);
87 $this->assertEquals('2010', $second_item['Y1']);
88 $this->assertEquals('Berghahn', $second_item['PB']);
89 $this->assertEquals('Sowjetunion, Mitteleuropa, Naher Osten, Japan, Kulturbeziehungen, Diplomatie, Geschichte 1900-2000, Aufsatzsammlung', $second_item['KW']);
90 $this->assertEquals('XII, 265 S.', $second_item['EP']);
91 $this->assertEquals('978-1-84545-746-4', $second_item['SN']);
92 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...