Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/tests/api-testing/action/PrefixSearch.js
Ðазад
'use strict'; const { action, assert, utils } = require( 'api-testing' ); describe( 'Prefix Search', () => { const prefix = `R${ utils.title( utils.uniq() ) }`; const firstPage = `${ prefix }_first`; const secondPage = `${ prefix }_second`; const thirdPage = `${ prefix }_third`; let alice; before( async () => { alice = await action.alice(); const text = 'Random Text'; await alice.edit( firstPage, { text } ); await alice.edit( secondPage, { text } ); await alice.edit( thirdPage, { text } ); } ); it( 'should search for pages with the `${prefix}` prefix', async () => { const result = await alice.list( 'prefixsearch', { pssearch: `${ prefix }`, pslimit: 100 } ); const pageTitles = result.map( ( p ) => utils.dbkey( p.title ) ); assert.sameMembers( pageTitles, [ firstPage, secondPage, thirdPage ] ); } ); } );
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка