Lines Matching +full:page +full:schema +(+path:plugin +path:struct) -(+path:plugin +path:struct +path:lang)
17 $this->assertTrue($ass->matchPagePattern('some:ns:page', 'some:ns:page'));
18 $this->assertTrue($ass->matchPagePattern('some:ns:*', 'some:ns:page'));
19 $this->assertTrue($ass->matchPagePattern('some:**', 'some:ns:page'));
20 $this->assertTrue($ass->matchPagePattern('**', 'some:ns:page'));
22 $this->assertFalse($ass->matchPagePattern('some:ns:page', 'some:ns:other'));
26 $this->assertTrue($ass->matchPagePattern('/page/', 'somepagehere'));
27 $this->assertFalse($ass->matchPagePattern('/:page/', 'somepagehere'));
28 $this->assertTrue($ass->matchPagePattern('/:page/', 'some:pagehere'));
29 $this->assertTrue($ass->matchPagePattern('/:page/', 'pagehere'));
47 // old page is still known
63 $ass->addPattern('a:single:page', 'singlepage');
70 'pattern' => 'a:single:page',
87 $this->assertEquals(['singlepage'], $ass->getPageAssignments('a:single:page'));
98 $ass->removePattern('a:single:page', 'singlepage');
106 * Check reevaluation of patterns for a specific page works
116 // fake assign the page to some schema
124 // add a pattern and deliberately deassign the page
135 * Check the direct page assignments
145 // fake assign the page to some schema
149 // removing any pattern of the same schema should recheck all existing assignments
153 … // now the page is known to once have had data for that schema, a new pattern will reassign it
161 // removing one of the patterns, while the other still covers the same schema
169 // page should deassign again
189 // limit to certain schema